Skip to content

Commit bb646a9

Browse files
fix(sveltekit): missing /auth/ in the urls (#12846)
Co-authored-by: Thang Vu <[email protected]>
1 parent 089994a commit bb646a9

File tree

1 file changed

+2
-2
lines changed
  • packages/frameworks-sveltekit/src/lib

1 file changed

+2
-2
lines changed

packages/frameworks-sveltekit/src/lib/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export async function signIn<Redirect extends boolean = true>(
8686

8787
const baseUrl = base ?? ""
8888

89-
const signInUrl = `${baseUrl}/${
89+
const signInUrl = `${baseUrl}/auth/${
9090
provider === "credentials" ? "callback" : "signin"
9191
}/${provider}`
9292

@@ -151,7 +151,7 @@ export async function signOut<R extends boolean = true>(
151151
} = options ?? {}
152152

153153
const baseUrl = base ?? ""
154-
const res = await fetch(`${baseUrl}/signout`, {
154+
const res = await fetch(`${baseUrl}/auth/signout`, {
155155
method: "post",
156156
headers: {
157157
"Content-Type": "application/x-www-form-urlencoded",

0 commit comments

Comments
 (0)