Skip to content

Commit

Permalink
Fix email magic link response typing (#81)
Browse files Browse the repository at this point in the history
* Fix response

* wip
  • Loading branch information
hwhmeikle authored Oct 23, 2024
1 parent 4870f8d commit eb2d16d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@authsignal/browser",
"version": "1.0.2",
"version": "1.1.0",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
3 changes: 1 addition & 2 deletions src/email-magic-link.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {EmailMagicLinkApiClient} from "./api/email-magic-link-api-client";
import {CheckVerificationStatusResponse} from "./api/types/email-magic-link";
import {handleApiResponse} from "./helpers";
import {TokenCache} from "./token-cache";
import {AuthsignalResponse, ChallengeResponse, EnrollResponse} from "./types";
import {AuthsignalResponse, ChallengeResponse, EnrollResponse, CheckVerificationStatusResponse} from "./types";

type EmailMagicLinkOptions = {
baseUrl: string;
Expand Down
5 changes: 5 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,8 @@ export type VerifyResponse = {
token?: string;
failureReason?: string;
};

export type CheckVerificationStatusResponse = {
isVerified: boolean;
token?: string;
};

0 comments on commit eb2d16d

Please sign in to comment.