Skip to content

Commit

Permalink
Fixes #4 add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmas committed Dec 23, 2021
1 parent 78dc167 commit cd15762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export default class VueAuthenticate {
throw new Error('Invalid OAuth type');
}

const response = providerInstance.init(userData);
const response = await providerInstance.init(userData);
this.setToken(response, providerConfig.tokenPath);

if (this.isAuthenticated()) {
Expand Down

0 comments on commit cd15762

Please sign in to comment.