We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
options.state
1 parent 27a3f4f commit ad05455Copy full SHA for ad05455
src/index.ts
@@ -34,7 +34,7 @@ export function oauthLoginUrl (options: Options): Result {
34
login: options.login || null,
35
redirectUrl: options.redirectUrl || null,
36
scopes: scopesNormalized,
37
- state: Math.random().toString(36).substr(2),
+ state: options.state || Math.random().toString(36).substr(2),
38
url: `${BASE_URL}?client_id=${options.clientId}`
39
}
40
0 commit comments