Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@clerk/clerk-react

Package Overview
Dependencies
Maintainers
2
Versions
2472
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clerk/clerk-react - npm Package Compare versions

Comparing version 0.1.2-beta to 0.1.2-beta.1

12

dist/types.d.ts

@@ -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>;

2

package.json
{
"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>;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc