From 7736cfbb6f344efbb4e9b10cf328c8f83f22e390 Mon Sep 17 00:00:00 2001 From: merlindru Date: Mon, 3 Jun 2024 11:49:05 +0200 Subject: [PATCH 1/2] Remove redundant MFA param from passkeys SDK --- packages/js/passkeys-sdk/src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/js/passkeys-sdk/src/index.ts b/packages/js/passkeys-sdk/src/index.ts index e80e403..60c7f1f 100644 --- a/packages/js/passkeys-sdk/src/index.ts +++ b/packages/js/passkeys-sdk/src/index.ts @@ -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, @@ -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 }, }) ); }, From 825bd2c2dd3e9412fa184d63e95038baf605f9c9 Mon Sep 17 00:00:00 2001 From: merlindru Date: Mon, 3 Jun 2024 11:49:31 +0200 Subject: [PATCH 2/2] packages/js: Bump versions --- packages/js/passkeys-next-auth-provider/dist/package.json | 4 ++-- packages/js/passkeys-sdk/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/js/passkeys-next-auth-provider/dist/package.json b/packages/js/passkeys-next-auth-provider/dist/package.json index b15c759..8968b6d 100644 --- a/packages/js/passkeys-next-auth-provider/dist/package.json +++ b/packages/js/passkeys-next-auth-provider/dist/package.json @@ -3,7 +3,7 @@ "license": "MIT", "private": false, "type": "module", - "version": "0.3.0", + "version": "0.3.1", "exports": { ".": "./index.js", "./client": "./client.js" @@ -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" }, diff --git a/packages/js/passkeys-sdk/package.json b/packages/js/passkeys-sdk/package.json index c71a244..511075d 100644 --- a/packages/js/passkeys-sdk/package.json +++ b/packages/js/passkeys-sdk/package.json @@ -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",