Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/frameworks-sveltekit/src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export async function signIn<Redirect extends boolean = true>(
...signInParams
} = rest

const baseUrl = base ?? ""
const baseUrl = `${base}/auth`

const signInUrl = `${baseUrl}/${
provider === "credentials" ? "callback" : "signin"
Expand Down Expand Up @@ -150,7 +150,7 @@ export async function signOut<R extends boolean = true>(
redirectTo = options?.callbackUrl ?? window.location.href,
} = options ?? {}

const baseUrl = base ?? ""
const baseUrl = `${base}/auth`
const res = await fetch(`${baseUrl}/signout`, {
method: "post",
headers: {
Expand Down
4 changes: 2 additions & 2 deletions packages/frameworks-sveltekit/src/lib/webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function webAuthnOptions(
providerID: ProviderId,
options?: Omit<SignInOptions, "redirect">
) {
const baseUrl = base ?? ""
const baseUrl = `${base}/auth`

// @ts-expect-error
const params = new URLSearchParams(options)
Expand Down Expand Up @@ -72,7 +72,7 @@ export async function signIn<Redirect extends boolean = true>(
...signInParams
} = rest

const baseUrl = base ?? ""
const baseUrl = `${base}/auth`

if (!provider || provider !== "webauthn") {
// TODO: Add docs link with explanation
Expand Down