Skip to content

Commit

Permalink
electron: include existing scopes in new token request
Browse files Browse the repository at this point in the history
  • Loading branch information
d-fischer committed Jan 15, 2022
1 parent aa7c82d commit 922c5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/auth-electron/src/ElectronAuthProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class ElectronAuthProvider implements AuthProvider {
response_type: 'token',
client_id: this.clientId,
redirect_uri: this._redirectUri,
scope: scopes.join(' ')
scope: Array.from(new Set([...this.currentScopes, ...scopes])).join(' ')
};
if (this._allowUserChange) {
queryParams.force_verify = true;
Expand Down

0 comments on commit 922c5f6

Please sign in to comment.