Skip to content

Commit

Permalink
MWPW-142878 make call async
Browse files Browse the repository at this point in the history
  • Loading branch information
vhargrave committed Sep 17, 2024
1 parent 528f8dd commit a52896b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/features/google-login.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const onToken = async (getMetadata, data, getConfig) => {
let destination;
const config = getConfig();
try {
destination = typeof config.googleLoginURLCallback === 'function' ? new URL(config.googleLoginURLCallback()) : new URL(getMetadata('google-login-redirect'))?.href;
destination = typeof config.googleLoginURLCallback === 'function' ? new URL(await config.googleLoginURLCallback()) : new URL(getMetadata('google-login-redirect'))?.href;
} catch {
// Do nothing
}
Expand Down

0 comments on commit a52896b

Please sign in to comment.