Skip to content

Commit 7aa73fd

Browse files
committed
fix(webauthn): update base URL construction for authentication flows
1 parent 3281854 commit 7aa73fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function webAuthnOptions(
2424
providerID: ProviderId,
2525
options?: Omit<SignInOptions, "redirect">
2626
) {
27-
const baseUrl = base ?? ""
27+
const baseUrl = `${base}/auth`
2828

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

75-
const baseUrl = base ?? ""
75+
const baseUrl = `${base}/auth`
7676

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

0 commit comments

Comments
 (0)