Next.js Discord

Discord Forum

How do you ask the backend for different scopes?

Unanswered
German Longhaired Pointer posted this in #help-forum
Open in Discord
German Longhaired PointerOP
BattleNetProvider({
            clientId: process.env.BNET_CLIENT_ID as string,
            clientSecret: process.env.BNET_CLIENT_SECRET as string,
            issuer: "https://us.battle.net/oauth",
   
            authorization: {

                params:{scope:"openid wow.profile"}
            },
        }),


I have this simple code backend snippet and the current scope is openid wow.profile and was wondering:
How would I return an access token with another kind of scope.?
(i.e openid wow.profile sc2.profile, openid sc2.profile, etc.)
I want different sets of scopes being selected and the access token would be created based on that selection.

1 Reply

German Longhaired PointerOP
Bumping this thread