From 2f087f11a7c186a52978e64c469adbcd90a38c4c Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 1 Feb 2022 16:20:37 +0100 Subject: [PATCH] fix(useStrapiAuth): getProviderAuthenticationUrl fails to concat with prefix --- src/runtime/composables/useStrapiAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/useStrapiAuth.ts b/src/runtime/composables/useStrapiAuth.ts index 4a6929b1..5d3b9ee8 100644 --- a/src/runtime/composables/useStrapiAuth.ts +++ b/src/runtime/composables/useStrapiAuth.ts @@ -153,7 +153,7 @@ export const useStrapiAuth = () => { * @returns string */ const getProviderAuthenticationUrl = (provider: StrapiAuthProvider): string => { - return new URL(`/connect/${provider}`, url).href + return `${url}/connect/${provider}` } /**