Skip to content

Commit

Permalink
Allow set state in case it exists on oauth2 provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Partipilo committed Sep 27, 2018
1 parent eb7dc9e commit 2e38c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schemes/oauth2.js
Expand Up @@ -70,7 +70,7 @@ export default class Oauth2Scheme {
client_id: this.options.client_id,
redirect_uri: this._redirectURI,
scope: this._scope,
state: randomString(),
state: this.options.state || randomString(),
};

if (this.options.audience) {
Expand Down

0 comments on commit 2e38c54

Please sign in to comment.