We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 589c6e2 commit fe2791fCopy full SHA for fe2791f
src/lib/auth-ui-provider.tsx
@@ -359,6 +359,12 @@ export const AuthUIProvider = ({
359
return { ...defaultMutators, ...mutatorsProp } as AuthMutators
360
}, [defaultMutators, mutatorsProp])
361
362
+ // Remove trailing slash from baseURL
363
+ baseURL = baseURL.endsWith("/") ? baseURL.slice(0, -1) : baseURL
364
+
365
+ // Remove trailing slash from basePath
366
+ basePath = basePath.endsWith("/") ? basePath.slice(0, -1) : basePath
367
368
return (
369
<AuthUIContext.Provider
370
value={{
0 commit comments