File tree 5 files changed +12
-6
lines changed
5 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @authsignal/browser" ,
3
- "version" : " 1.0.0-alpha1 " ,
3
+ "version" : " 1.0.0" ,
4
4
"type" : " module" ,
5
5
"main" : " dist/index.js" ,
6
6
"module" : " dist/index.js" ,
Original file line number Diff line number Diff line change 1
1
import { EmailApiClient } from "./api/email-api-client" ;
2
- import { ChallengeResponse , EnrollResponse , VerifyResponse } from "./api/types/shared" ;
2
+ import { ChallengeResponse , EnrollResponse } from "./api/types/shared" ;
3
3
import { handleApiResponse } from "./helpers" ;
4
4
import { TokenCache } from "./token-cache" ;
5
- import { AuthsignalResponse } from "./types" ;
5
+ import { AuthsignalResponse , VerifyResponse } from "./types" ;
6
6
7
7
type EmailOptions = {
8
8
baseUrl : string ;
Original file line number Diff line number Diff line change 1
1
import { SmsApiClient } from "./api/sms-api-client" ;
2
- import { ChallengeResponse , EnrollResponse , VerifyResponse } from "./api/types/shared" ;
2
+ import { ChallengeResponse , EnrollResponse } from "./api/types/shared" ;
3
3
import { handleApiResponse } from "./helpers" ;
4
4
import { TokenCache } from "./token-cache" ;
5
- import { AuthsignalResponse } from "./types" ;
5
+ import { AuthsignalResponse , VerifyResponse } from "./types" ;
6
6
7
7
type SmsOptions = {
8
8
baseUrl : string ;
Original file line number Diff line number Diff line change 1
1
import { TotpApiClient } from "./api/totp-api-client" ;
2
- import { VerifyResponse } from "./api/ types/shared " ;
2
+ import { VerifyResponse } from "./types" ;
3
3
import { EnrollTotpResponse } from "./api/types/totp" ;
4
4
import { handleApiResponse } from "./helpers" ;
5
5
import { TokenCache } from "./token-cache" ;
Original file line number Diff line number Diff line change @@ -78,3 +78,9 @@ export type AuthsignalResponse<T> = {
78
78
error ?: string ;
79
79
data ?: T ;
80
80
} ;
81
+
82
+ export type VerifyResponse = {
83
+ isVerified : boolean ;
84
+ token ?: string ;
85
+ failureReason ?: string ;
86
+ } ;
You can’t perform that action at this time.
0 commit comments