Skip to content

Commit ad05455

Browse files
committed
fix: pass through options.state
1 parent 27a3f4f commit ad05455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function oauthLoginUrl (options: Options): Result {
3434
login: options.login || null,
3535
redirectUrl: options.redirectUrl || null,
3636
scopes: scopesNormalized,
37-
state: Math.random().toString(36).substr(2),
37+
state: options.state || Math.random().toString(36).substr(2),
3838
url: `${BASE_URL}?client_id=${options.clientId}`
3939
}
4040
}

0 commit comments

Comments
 (0)