diff --git a/libs/features/google-login.js b/libs/features/google-login.js index 8ebbf44d99..950c042288 100644 --- a/libs/features/google-login.js +++ b/libs/features/google-login.js @@ -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 }