Skip to content

Commit a9bb890

Browse files
committed
Fix authentication options request body
1 parent ee93987 commit a9bb890

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@authsignal/browser",
3-
"version": "1.12.4",
3+
"version": "1.12.5",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

src/api/passkey-api-client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@ export class PasskeyApiClient {
5858

5959
async authenticationOptions({
6060
token,
61+
challengeId,
6162
useCookies,
6263
}: {
6364
token?: string;
6465
} & AuthenticationOptsRequest): Promise<AuthenticationOptsResponse | ErrorResponse> {
6566
const response = await fetch(`${this.baseUrl}/client/user-authenticators/passkey/authentication-options`, {
6667
method: "POST",
6768
headers: buildHeaders({token, tenantId: this.tenantId}),
68-
body: JSON.stringify({}),
69+
body: JSON.stringify({challengeId}),
6970
credentials: useCookies ? "include" : "same-origin",
7071
});
7172

0 commit comments

Comments
 (0)