Skip to content

Commit 8d1817e

Browse files
authored
Allow replaying otp challenge by challengeId (#90)
1 parent 80eda00 commit 8d1817e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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/node",
3-
"version": "2.16.0",
3+
"version": "2.17.0",
44
"main": "./dist/index.js",
55
"module": "./dist/index.mjs",
66
"types": "dist/index.d.ts",

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const DEFAULT_API_URL = "https://api.authsignal.com/v1";
22

3-
export const VERSION = "2.16.0";
3+
export const VERSION = "2.17.0";

src/types.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,9 @@ export interface GetChallengeResponse {
218218
}
219219

220220
export interface ChallengeRequest {
221-
verificationMethod: "SMS" | "EMAIL_OTP" | "WHATSAPP";
222-
action: string;
221+
verificationMethod?: "SMS" | "EMAIL_OTP" | "WHATSAPP";
222+
action?: string;
223+
challengeId?: string;
223224
idempotencyKey?: string;
224225
userId?: string;
225226
email?: string;

0 commit comments

Comments
 (0)