We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm struggling to find a built-in way to send a state parameter in the authorization request. My provider (Okta) requires it for the implicit flow.
state
I am able to workaround this by manually adding the query parameter to the URL:
... const nonce = generators.nonce() const state = generators.state() const loginUrl = client.authorizationUrl({ scope: 'openid email profile', response_mode: 'form_post', nonce }) + `&state=${state}` ... const params = client.callbackParams(ctx.req) const tokenSet = await client.callback(ctx.url, params, { nonce, state })
This feels pretty hacky and I know I must be missing something but I haven't found any related properties in the docs.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
🤦♂️ Thank you.
Would you consider adding state as an optional parameter in the options object for TS users? I can open a PR if you'd like
sure, seems like it was omitted by mistake.
fix(typescript): add state property to AuthorizationParameters (#305)
b9dfa60
Resolves #304
Successfully merging a pull request may close this issue.
I'm struggling to find a built-in way to send a
state
parameter in the authorization request. My provider (Okta) requires it for the implicit flow.I am able to workaround this by manually adding the query parameter to the URL:
This feels pretty hacky and I know I must be missing something but I haven't found any related properties in the docs.
The text was updated successfully, but these errors were encountered: