Skip to content

Commit

Permalink
Merge pull request #74 from teamhanko/fix/passkeys-sdk-redundant-mfa-…
Browse files Browse the repository at this point in the history
…param

JS SDK: Remove redundant MFA param
  • Loading branch information
merlindru authored Jun 5, 2024
2 parents 3a1c27b + 825bd2c commit d544a1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/js/passkeys-next-auth-provider/dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.3.0",
"version": "0.3.1",
"exports": {
".": "./index.js",
"./client": "./client.js"
Expand All @@ -15,7 +15,7 @@
"typescript": "^5.0.0"
},
"dependencies": {
"@teamhanko/passkeys-sdk": "^0.2.0",
"@teamhanko/passkeys-sdk": "^0.2.1",
"@github/webauthn-json": "^2.1.1",
"jose": "^5.1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/js/passkeys-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"private": false,
"type": "module",
"version": "0.2.0",
"version": "0.2.1",
"module": "src/index.ts",
"main": "dist/index.js",
"types": "./dist/src/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/js/passkeys-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ export function tenant(config: { baseUrl?: string; apiKey: string; tenantId: str
},
mfa: {
registration: {
initialize(data: { userId: string; username: string; icon?: string; displayName?: string }) {
initialize(data: { username: string; icon?: string; displayName?: string }) {
return wrap(
client.POST("/{tenant_id}/mfa/registration/initialize", {
params,
body: {
user_id: data.userId,
user_id: userId,
username: data.username,
icon: data.icon,
display_name: data.displayName,
Expand All @@ -98,11 +98,11 @@ export function tenant(config: { baseUrl?: string; apiKey: string; tenantId: str
},
},
login: {
initialize(data: { userId: string }) {
initialize() {
return wrap(
client.POST("/{tenant_id}/mfa/login/initialize", {
params,
body: { user_id: data.userId },
body: { user_id: userId },
})
);
},
Expand Down

0 comments on commit d544a1e

Please sign in to comment.