Skip to content

Commit

Permalink
packages/js: fix MFA login init
Browse files Browse the repository at this point in the history
  • Loading branch information
merlindru committed May 15, 2024
1 parent f1468ad commit ca97297
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/js/passkeys-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,13 @@ export function tenant(config: { baseUrl?: string; apiKey: string; tenantId: str
},
},
login: {
initialize() {
return wrap(client.POST("/{tenant_id}/mfa/login/initialize", { params }));
initialize(data: { userId: string }) {
return wrap(
client.POST("/{tenant_id}/mfa/login/initialize", {
params,
body: { user_id: data.userId },
})
);
},
finalize(credential: PostLoginFinalizeBody) {
return wrap(client.POST("/{tenant_id}/mfa/login/finalize", { params, body: credential }));
Expand Down

0 comments on commit ca97297

Please sign in to comment.