Skip to content

Commit

Permalink
fix(Events): await for authorizeOauth2Action result
Browse files Browse the repository at this point in the history
  • Loading branch information
carowright committed Jan 30, 2023
1 parent ce3d993 commit 836de54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authorization/Events.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class OidcRemoveTokensEvent extends CustomEvent {
export async function authorizeOauth2Action(target, config) {
const e = new OAuth2AuthorizeEvent(config);
target.dispatchEvent(e);
return e.detail.result;
return await e.detail.result;
}

/**
Expand Down

0 comments on commit 836de54

Please sign in to comment.