Skip to content

Commit

Permalink
The query string depends on the state in storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Zelinsky committed Jul 19, 2016
1 parent d46d447 commit 2ad0b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oauth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default class OAuth2 {
Object.assign(this.defaults, options);

this.$timeout(() => {
const url = [this.defaults.authorizationEndpoint, this.buildQueryString()].join('?');
const stateName = this.defaults.name + '_state';
const { name, state, popupOptions, redirectUri, responseType } = this.defaults;

Expand All @@ -79,6 +78,7 @@ export default class OAuth2 {
} else if (typeof state === 'string') {
this.SatellizerStorage.set(stateName, state);
}
const url = [this.defaults.authorizationEndpoint, this.buildQueryString()].join('?');

this.SatellizerPopup.open(url, name, popupOptions);

Expand Down

0 comments on commit 2ad0b79

Please sign in to comment.