Discord-user-bots icon indicating copy to clipboard operation
Discord-user-bots copied to clipboard

refresh token

Open dbrab opened this issue 1 year ago • 1 comments

Is there any way to get a refresh token? , normally the tokens do not last more than 12 hours, and I need to re-inspect the requests to get the token, so I saw discord has a ws where the token is passed. access to start

dbrab avatar Mar 20 '23 16:03 dbrab

This problem has gone unnoticed by me until recently when I tried to run the library on an account with a verified phone number. There is no logic to refresh the token nor is there a callback that is called on all discord events so you can do it yourself. For now, you or anyone else with the same problem should edit the library's code on their local machine to add the needed logic. Thank you for bringing this to my attention, I will fix this in the next update of Discord User Bots.

Sopur avatar Apr 30 '23 02:04 Sopur