aislandener / discord-deckboard

A plugin to execute Discord actions via RPC from Deckboard
MIT License
15 stars 12 forks source link

Stops working every other day or so #2

Closed DjScribblez closed 11 months ago

DjScribblez commented 2 years ago

About every other day or every 2 days the extension just stops working and I have to redo the deckboard configuration. Changing the Client Secret and Access Token.

jbinventor commented 2 years ago

The access token expires after some time period. The extension should manage the expiration and get an access token from clientID and clientSecret (at least, on every app startup). The access token should not be a configuration parameter.

The developer documentation of Discord explains how to obtain the access token from the clientID and clientSecret: https://discord.com/developers/docs/topics/oauth2#client-credentials-grant

Hope this helps.

Nickinatorz commented 2 years ago

Yeah too bad, having the same.

Sourenics commented 1 year ago

I think I'm having this exact issue. Deckboard extension stops working after a couple of days.

karimawi commented 1 year ago

Same issue 🥲

DazerGG commented 1 year ago

same issue x2

EeEkKOo commented 1 year ago

same

alexonpeace commented 12 months ago

I don't think this issue is ever going to be fixed lol the last updates been a year ago

aislandener commented 11 months ago

Hello everybody

I'm sorry for not updating the project for over 1 year, because of my work that took up all my free time to develop.

Today I performed an authentication repair.

It's not the way I wanted, but it's an interesting solution.

Instead of saving the access token and when it stops, performing the process to refresh the token, I'm just generating a new token each time the deckboard application is restarted.

Because I am using IPC communication, it does not return an update token to generate a new one.

I hope this fix is ​​enough, I'll see if I can find a better way to do this authentication.