[discord-rpc] Retrieving authorization code for access token

Hey there, is there a way to retrieve the authorization code upon authorizing an RPC? I want to use scopes without exposing the client secret to every user that runs the app. These arethe current options that I supply, although it does not work without providing the code, which cannot be retrieved so far.
2 Replies
d.js toolkit
d.js toolkit3mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
TehPig
TehPigOP3mo ago
Scopes used: rpc, rpc.voice.read
rpc.login({ clientId, scopes, accessToken, redirectUri: "http://localhost/" })
rpc.login({ clientId, scopes, accessToken, redirectUri: "http://localhost/" })

Did you find this page helpful?