Commit 597f78f 1 parent 3664aa5 commit 597f78f Copy full SHA for 597f78f
File tree 2 files changed +4
-4
lines changed
packages/frameworks-sveltekit/src/lib
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export async function signIn<Redirect extends boolean = true>(
84
84
...signInParams
85
85
} = rest
86
86
87
- const baseUrl = base ?? ""
87
+ const baseUrl = ` ${ base } /auth`
88
88
89
89
const signInUrl = `${ baseUrl } /${
90
90
provider === "credentials" ? "callback" : "signin"
@@ -150,7 +150,7 @@ export async function signOut<R extends boolean = true>(
150
150
redirectTo = options ?. callbackUrl ?? window . location . href ,
151
151
} = options ?? { }
152
152
153
- const baseUrl = base ?? ""
153
+ const baseUrl = ` ${ base } /auth`
154
154
const res = await fetch ( `${ baseUrl } /signout` , {
155
155
method : "post" ,
156
156
headers : {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ async function webAuthnOptions(
24
24
providerID : ProviderId ,
25
25
options ?: Omit < SignInOptions , "redirect" >
26
26
) {
27
- const baseUrl = base ?? ""
27
+ const baseUrl = ` ${ base } /auth`
28
28
29
29
// @ts -expect-error
30
30
const params = new URLSearchParams ( options )
@@ -72,7 +72,7 @@ export async function signIn<Redirect extends boolean = true>(
72
72
...signInParams
73
73
} = rest
74
74
75
- const baseUrl = base ?? ""
75
+ const baseUrl = ` ${ base } /auth`
76
76
77
77
if ( ! provider || provider !== "webauthn" ) {
78
78
// TODO: Add docs link with explanation
You can’t perform that action at this time.
0 commit comments