Skip to content

Commit eb2d16d

Browse files
authored
Fix email magic link response typing (#81)
* Fix response * wip
1 parent 4870f8d commit eb2d16d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@authsignal/browser",
3-
"version": "1.0.2",
3+
"version": "1.1.0",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

src/email-magic-link.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import {EmailMagicLinkApiClient} from "./api/email-magic-link-api-client";
2-
import {CheckVerificationStatusResponse} from "./api/types/email-magic-link";
32
import {handleApiResponse} from "./helpers";
43
import {TokenCache} from "./token-cache";
5-
import {AuthsignalResponse, ChallengeResponse, EnrollResponse} from "./types";
4+
import {AuthsignalResponse, ChallengeResponse, EnrollResponse, CheckVerificationStatusResponse} from "./types";
65

76
type EmailMagicLinkOptions = {
87
baseUrl: string;

src/types.ts

+5
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,8 @@ export type VerifyResponse = {
9898
token?: string;
9999
failureReason?: string;
100100
};
101+
102+
export type CheckVerificationStatusResponse = {
103+
isVerified: boolean;
104+
token?: string;
105+
};

0 commit comments

Comments
 (0)