Skip to content

Commit ee93987

Browse files
committed
Fix missing param
1 parent 698b6c8 commit ee93987

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-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.3",
3+
"version": "1.12.4",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

src/passkey.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ export class Passkey {
170170

171171
const optionsResponse =
172172
params?.action || !params?.useCookies
173-
? await this.api.authenticationOptions({token: params?.token, useCookies: params?.useCookies})
173+
? await this.api.authenticationOptions({
174+
token: params?.token,
175+
challengeId: challengeResponse?.challengeId,
176+
useCookies: params?.useCookies,
177+
})
174178
: await this.api.authenticationOptionsWeb({token: params?.token});
175179

176180
if ("error" in optionsResponse) {

0 commit comments

Comments
 (0)