@clerk/clerk-react
Advanced tools
Comparing version 0.1.2-beta to 0.1.2-beta.1
@@ -170,2 +170,3 @@ declare global { | ||
phone_number: string; | ||
reserved_for_second_factor: boolean; | ||
verification: VerificationJSON | null; | ||
@@ -177,5 +178,7 @@ } | ||
verification: VerificationResource; | ||
reservedForSecondFactor: boolean; | ||
toString: () => string; | ||
prepareVerification: () => Promise<PhoneNumberResource>; | ||
attemptVerification: (code: string) => Promise<PhoneNumberResource>; | ||
setReservedForSecondFactor: (reserve: boolean) => Promise<PhoneNumberResource>; | ||
destroy: () => Promise<void>; | ||
@@ -205,3 +208,3 @@ } | ||
export declare type SignInFactorStrategy = 'password' | 'oauth_google' | 'phone_code' | 'email_code'; | ||
export declare type SignInStatus = 'needs_identifier' | 'needs_factor_one' | 'complete'; | ||
export declare type SignInStatus = 'needs_identifier' | 'needs_factor_one' | 'needs_factor_two' | 'complete'; | ||
export interface SignInJSON extends ClerkResourceJSON { | ||
@@ -214,2 +217,3 @@ object: 'sign_in_attempt'; | ||
factor_one_verification: VerificationJSON | null; | ||
factor_two_verification: VerificationJSON | null; | ||
created_user_session_id: string | null; | ||
@@ -223,6 +227,9 @@ } | ||
factorOneVerification: VerificationResource; | ||
factorTwoVerification: VerificationResource; | ||
createdUserSessionID: string | null; | ||
create: (params: any) => Promise<SignInResource>; | ||
prepareFactorOne: (params: any) => Promise<SignInResource>; | ||
attemptFactorOne: (params: any) => Promise<SignInResource>; | ||
prepareFactorOne: (params: any) => Promise<SignInResource>; | ||
prepareFactorTwo: (params: any) => Promise<SignInResource>; | ||
attemptFactorTwo: (params: any) => Promise<SignInResource>; | ||
} | ||
@@ -306,2 +313,3 @@ export declare type SignInResourceC = ClerkResourceC<SignInResource, SignInJSON | null>; | ||
createPhoneNumber: (phoneNumber: string) => Promise<PhoneNumberResource>; | ||
twoFactorEnabled: () => boolean; | ||
} | ||
@@ -308,0 +316,0 @@ export declare type UserResourceC = ClerkResourceC<UserResource, UserJSON>; |
{ | ||
"version": "0.1.2-beta", | ||
"version": "0.1.2-beta.1", | ||
"license": "MIT", | ||
@@ -4,0 +4,0 @@ "main": "dist/index.js", |
@@ -224,2 +224,3 @@ declare global { | ||
phone_number: string; | ||
reserved_for_second_factor: boolean; | ||
verification: VerificationJSON | null; | ||
@@ -231,5 +232,9 @@ } | ||
verification: VerificationResource; | ||
reservedForSecondFactor: boolean; | ||
toString: () => string; | ||
prepareVerification: () => Promise<PhoneNumberResource>; | ||
attemptVerification: (code: string) => Promise<PhoneNumberResource>; | ||
setReservedForSecondFactor: ( | ||
reserve: boolean | ||
) => Promise<PhoneNumberResource>; | ||
destroy: () => Promise<void>; | ||
@@ -276,3 +281,7 @@ } | ||
| 'email_code'; | ||
export type SignInStatus = 'needs_identifier' | 'needs_factor_one' | 'complete'; | ||
export type SignInStatus = | ||
| 'needs_identifier' | ||
| 'needs_factor_one' | ||
| 'needs_factor_two' | ||
| 'complete'; | ||
export interface SignInJSON extends ClerkResourceJSON { | ||
@@ -285,2 +294,3 @@ object: 'sign_in_attempt'; | ||
factor_one_verification: VerificationJSON | null; | ||
factor_two_verification: VerificationJSON | null; | ||
created_user_session_id: string | null; | ||
@@ -294,6 +304,9 @@ } | ||
factorOneVerification: VerificationResource; | ||
factorTwoVerification: VerificationResource; | ||
createdUserSessionID: string | null; | ||
create: (params: any) => Promise<SignInResource>; | ||
prepareFactorOne: (params: any) => Promise<SignInResource>; | ||
attemptFactorOne: (params: any) => Promise<SignInResource>; | ||
prepareFactorOne: (params: any) => Promise<SignInResource>; | ||
prepareFactorTwo: (params: any) => Promise<SignInResource>; | ||
attemptFactorTwo: (params: any) => Promise<SignInResource>; | ||
} | ||
@@ -394,5 +407,7 @@ export type SignInResourceC = ClerkResourceC<SignInResource, SignInJSON | null>; | ||
passwordEnabled: boolean; | ||
update: (params: any) => Promise<UserResource>; | ||
createEmailAddress: (email: string) => Promise<EmailAddressResource>; | ||
createPhoneNumber: (phoneNumber: string) => Promise<PhoneNumberResource>; | ||
twoFactorEnabled: () => boolean; | ||
} | ||
@@ -399,0 +414,0 @@ export type UserResourceC = ClerkResourceC<UserResource, UserJSON>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
215765
2788
0