Skip to content

Commit

Permalink
fix undefined prompt (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjoyce3 committed Sep 17, 2019
1 parent b935d45 commit eb07abb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/appid.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/appid.umd.min.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ class AppID {
redirect_uri: this.window.origin,
response_mode: constants.RESPONSE_MODE,
nonce,
scope: constants.SCOPE,
prompt
scope: constants.SCOPE
};

if (prompt) {
authParams.prompt = prompt;
}

const authUrl = this.openIdConfigResource.getAuthorizationEndpoint() + '?' + this.utils.buildParams(authParams);
return {
codeVerifier,
Expand Down

0 comments on commit eb07abb

Please sign in to comment.