From a52896bc7b9e01dae63dc6132f372010a1029071 Mon Sep 17 00:00:00 2001 From: Victor Hargrave Date: Tue, 17 Sep 2024 20:08:07 +0200 Subject: [PATCH] MWPW-142878 make call async --- libs/features/google-login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }