Skip to content

Commit

Permalink
fix(useStrapiAuth): getProviderAuthenticationUrl fails to concat with…
Browse files Browse the repository at this point in the history
… prefix
  • Loading branch information
benjamincanac committed Feb 1, 2022
1 parent 4e996be commit 2f087f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/useStrapiAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}

/**
Expand Down

0 comments on commit 2f087f1

Please sign in to comment.