@thetechfossil/auth2 1.2.21 → 1.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/index.components.d.mts +14 -1
- package/dist/index.components.d.ts +14 -1
- package/dist/index.components.js +458 -59
- package/dist/index.components.js.map +1 -1
- package/dist/index.components.mjs +458 -60
- package/dist/index.components.mjs.map +1 -1
- package/dist/index.d.mts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +459 -59
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +459 -60
- package/dist/index.mjs.map +1 -1
- package/dist/index.next.d.mts +16 -1
- package/dist/index.next.d.ts +16 -1
- package/dist/index.next.js +458 -59
- package/dist/index.next.js.map +1 -1
- package/dist/index.next.mjs +458 -60
- package/dist/index.next.mjs.map +1 -1
- package/dist/index.next.server.d.mts +2 -0
- package/dist/index.next.server.d.ts +2 -0
- package/dist/index.next.server.js +14 -0
- package/dist/index.next.server.js.map +1 -1
- package/dist/index.next.server.mjs +14 -0
- package/dist/index.next.server.mjs.map +1 -1
- package/dist/index.node.d.mts +2 -0
- package/dist/index.node.d.ts +2 -0
- package/dist/index.node.js +14 -0
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +14 -0
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -186,6 +186,8 @@ declare class AuthService {
|
|
|
186
186
|
constructor(config: AuthConfig);
|
|
187
187
|
private loadTokenFromStorage;
|
|
188
188
|
private saveTokenToStorage;
|
|
189
|
+
private setTokenCookie;
|
|
190
|
+
private removeTokenCookie;
|
|
189
191
|
private removeTokenFromStorage;
|
|
190
192
|
private connectSocket;
|
|
191
193
|
private disconnectSocket;
|
|
@@ -502,6 +504,19 @@ interface UserProfileProps {
|
|
|
502
504
|
}
|
|
503
505
|
declare const UserProfile: React.FC<UserProfileProps>;
|
|
504
506
|
|
|
507
|
+
interface SuperAdminSignInProps {
|
|
508
|
+
redirectUrl?: string;
|
|
509
|
+
appearance?: {
|
|
510
|
+
elements?: {
|
|
511
|
+
formButtonPrimary?: React.CSSProperties;
|
|
512
|
+
card?: React.CSSProperties;
|
|
513
|
+
headerTitle?: React.CSSProperties;
|
|
514
|
+
formFieldInput?: React.CSSProperties;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
declare const SuperAdminSignIn: React.FC<SuperAdminSignInProps>;
|
|
519
|
+
|
|
505
520
|
interface PhoneInputProps {
|
|
506
521
|
value: string;
|
|
507
522
|
onChange: (value: string) => void;
|
|
@@ -613,12 +628,13 @@ declare const index$1_ResetPassword: typeof ResetPassword;
|
|
|
613
628
|
declare const index$1_SignIn: typeof SignIn;
|
|
614
629
|
declare const index$1_SignOut: typeof SignOut;
|
|
615
630
|
declare const index$1_SignUp: typeof SignUp;
|
|
631
|
+
declare const index$1_SuperAdminSignIn: typeof SuperAdminSignIn;
|
|
616
632
|
declare const index$1_UserButton: typeof UserButton;
|
|
617
633
|
declare const index$1_UserProfile: typeof UserProfile;
|
|
618
634
|
declare const index$1_VerifyEmail: typeof VerifyEmail;
|
|
619
635
|
declare const index$1_useAuthTheme: typeof useAuthTheme;
|
|
620
636
|
declare namespace index$1 {
|
|
621
|
-
export { index$1_AuthFlow as AuthFlow, index$1_AuthProvider as AuthProvider, index$1_AuthThemeProvider as AuthThemeProvider, index$1_AvatarManager as AvatarManager, type index$1_AvatarManagerProps as AvatarManagerProps, index$1_AvatarUploader as AvatarUploader, type index$1_AvatarUploaderProps as AvatarUploaderProps, index$1_ChangePassword as ChangePassword, index$1_EmailVerificationPage as EmailVerificationPage, index$1_ForgotPassword as ForgotPassword, index$1_LoginForm as LoginForm, index$1_OtpForm as OtpForm, index$1_PhoneInput as PhoneInput, index$1_ProtectedRoute as ProtectedRoute, index$1_PublicRoute as PublicRoute, index$1_RegisterForm as RegisterForm, type index$1_RegisterFormProps as RegisterFormProps, index$1_ResetPassword as ResetPassword, index$1_SignIn as SignIn, index$1_SignOut as SignOut, index$1_SignUp as SignUp, index$1_UserButton as UserButton, index$1_UserProfile as UserProfile, index$1_VerifyEmail as VerifyEmail, useAuth$1 as useAuth, useAuth as useAuthLegacy, index$1_useAuthTheme as useAuthTheme };
|
|
637
|
+
export { index$1_AuthFlow as AuthFlow, index$1_AuthProvider as AuthProvider, index$1_AuthThemeProvider as AuthThemeProvider, index$1_AvatarManager as AvatarManager, type index$1_AvatarManagerProps as AvatarManagerProps, index$1_AvatarUploader as AvatarUploader, type index$1_AvatarUploaderProps as AvatarUploaderProps, index$1_ChangePassword as ChangePassword, index$1_EmailVerificationPage as EmailVerificationPage, index$1_ForgotPassword as ForgotPassword, index$1_LoginForm as LoginForm, index$1_OtpForm as OtpForm, index$1_PhoneInput as PhoneInput, index$1_ProtectedRoute as ProtectedRoute, index$1_PublicRoute as PublicRoute, index$1_RegisterForm as RegisterForm, type index$1_RegisterFormProps as RegisterFormProps, index$1_ResetPassword as ResetPassword, index$1_SignIn as SignIn, index$1_SignOut as SignOut, index$1_SignUp as SignUp, index$1_SuperAdminSignIn as SuperAdminSignIn, index$1_UserButton as UserButton, index$1_UserProfile as UserProfile, index$1_VerifyEmail as VerifyEmail, useAuth$1 as useAuth, useAuth as useAuthLegacy, index$1_useAuthTheme as useAuthTheme };
|
|
622
638
|
}
|
|
623
639
|
|
|
624
640
|
declare class AuthClient extends AuthService {
|
|
@@ -671,4 +687,4 @@ declare namespace index {
|
|
|
671
687
|
export { index_AuthClient as AuthClient, index_TokenVerifier as TokenVerifier, index_createTokenVerifier as createTokenVerifier, index_getTokenVerifier as getTokenVerifier, index_verifyToken as verifyToken };
|
|
672
688
|
}
|
|
673
689
|
|
|
674
|
-
export { type AuditLog, type AuthConfig, AuthFlow, AuthProvider, type AuthResponse, AuthService, AvatarManager, AvatarUploader, ChangePassword, type CsrfTokenResponse, EmailVerificationPage, ForgotPassword, HttpClient, type LinkedAccount, type LoginData, LoginForm, type MFASetup, type OAuthConfig, type OAuthProvider, OtpForm, ProtectedRoute, PublicRoute, type RegisterData, RegisterForm, ResetPassword, type Session, SignIn, SignOut, SignUp, type SocketConfig, type SocketEventHandler, SocketService, type UpdateUserData, type UpfilesConfig, type UseAuthReturn, type User, UserButton, UserProfile, type VerifyData, VerifyEmail, index as node, index$1 as react, useAuth$1 as useAuth };
|
|
690
|
+
export { type AuditLog, type AuthConfig, AuthFlow, AuthProvider, type AuthResponse, AuthService, AvatarManager, AvatarUploader, ChangePassword, type CsrfTokenResponse, EmailVerificationPage, ForgotPassword, HttpClient, type LinkedAccount, type LoginData, LoginForm, type MFASetup, type OAuthConfig, type OAuthProvider, OtpForm, ProtectedRoute, PublicRoute, type RegisterData, RegisterForm, ResetPassword, type Session, SignIn, SignOut, SignUp, type SocketConfig, type SocketEventHandler, SocketService, SuperAdminSignIn, type UpdateUserData, type UpfilesConfig, type UseAuthReturn, type User, UserButton, UserProfile, type VerifyData, VerifyEmail, index as node, index$1 as react, useAuth$1 as useAuth };
|
package/dist/index.d.ts
CHANGED
|
@@ -186,6 +186,8 @@ declare class AuthService {
|
|
|
186
186
|
constructor(config: AuthConfig);
|
|
187
187
|
private loadTokenFromStorage;
|
|
188
188
|
private saveTokenToStorage;
|
|
189
|
+
private setTokenCookie;
|
|
190
|
+
private removeTokenCookie;
|
|
189
191
|
private removeTokenFromStorage;
|
|
190
192
|
private connectSocket;
|
|
191
193
|
private disconnectSocket;
|
|
@@ -502,6 +504,19 @@ interface UserProfileProps {
|
|
|
502
504
|
}
|
|
503
505
|
declare const UserProfile: React.FC<UserProfileProps>;
|
|
504
506
|
|
|
507
|
+
interface SuperAdminSignInProps {
|
|
508
|
+
redirectUrl?: string;
|
|
509
|
+
appearance?: {
|
|
510
|
+
elements?: {
|
|
511
|
+
formButtonPrimary?: React.CSSProperties;
|
|
512
|
+
card?: React.CSSProperties;
|
|
513
|
+
headerTitle?: React.CSSProperties;
|
|
514
|
+
formFieldInput?: React.CSSProperties;
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
declare const SuperAdminSignIn: React.FC<SuperAdminSignInProps>;
|
|
519
|
+
|
|
505
520
|
interface PhoneInputProps {
|
|
506
521
|
value: string;
|
|
507
522
|
onChange: (value: string) => void;
|
|
@@ -613,12 +628,13 @@ declare const index$1_ResetPassword: typeof ResetPassword;
|
|
|
613
628
|
declare const index$1_SignIn: typeof SignIn;
|
|
614
629
|
declare const index$1_SignOut: typeof SignOut;
|
|
615
630
|
declare const index$1_SignUp: typeof SignUp;
|
|
631
|
+
declare const index$1_SuperAdminSignIn: typeof SuperAdminSignIn;
|
|
616
632
|
declare const index$1_UserButton: typeof UserButton;
|
|
617
633
|
declare const index$1_UserProfile: typeof UserProfile;
|
|
618
634
|
declare const index$1_VerifyEmail: typeof VerifyEmail;
|
|
619
635
|
declare const index$1_useAuthTheme: typeof useAuthTheme;
|
|
620
636
|
declare namespace index$1 {
|
|
621
|
-
export { index$1_AuthFlow as AuthFlow, index$1_AuthProvider as AuthProvider, index$1_AuthThemeProvider as AuthThemeProvider, index$1_AvatarManager as AvatarManager, type index$1_AvatarManagerProps as AvatarManagerProps, index$1_AvatarUploader as AvatarUploader, type index$1_AvatarUploaderProps as AvatarUploaderProps, index$1_ChangePassword as ChangePassword, index$1_EmailVerificationPage as EmailVerificationPage, index$1_ForgotPassword as ForgotPassword, index$1_LoginForm as LoginForm, index$1_OtpForm as OtpForm, index$1_PhoneInput as PhoneInput, index$1_ProtectedRoute as ProtectedRoute, index$1_PublicRoute as PublicRoute, index$1_RegisterForm as RegisterForm, type index$1_RegisterFormProps as RegisterFormProps, index$1_ResetPassword as ResetPassword, index$1_SignIn as SignIn, index$1_SignOut as SignOut, index$1_SignUp as SignUp, index$1_UserButton as UserButton, index$1_UserProfile as UserProfile, index$1_VerifyEmail as VerifyEmail, useAuth$1 as useAuth, useAuth as useAuthLegacy, index$1_useAuthTheme as useAuthTheme };
|
|
637
|
+
export { index$1_AuthFlow as AuthFlow, index$1_AuthProvider as AuthProvider, index$1_AuthThemeProvider as AuthThemeProvider, index$1_AvatarManager as AvatarManager, type index$1_AvatarManagerProps as AvatarManagerProps, index$1_AvatarUploader as AvatarUploader, type index$1_AvatarUploaderProps as AvatarUploaderProps, index$1_ChangePassword as ChangePassword, index$1_EmailVerificationPage as EmailVerificationPage, index$1_ForgotPassword as ForgotPassword, index$1_LoginForm as LoginForm, index$1_OtpForm as OtpForm, index$1_PhoneInput as PhoneInput, index$1_ProtectedRoute as ProtectedRoute, index$1_PublicRoute as PublicRoute, index$1_RegisterForm as RegisterForm, type index$1_RegisterFormProps as RegisterFormProps, index$1_ResetPassword as ResetPassword, index$1_SignIn as SignIn, index$1_SignOut as SignOut, index$1_SignUp as SignUp, index$1_SuperAdminSignIn as SuperAdminSignIn, index$1_UserButton as UserButton, index$1_UserProfile as UserProfile, index$1_VerifyEmail as VerifyEmail, useAuth$1 as useAuth, useAuth as useAuthLegacy, index$1_useAuthTheme as useAuthTheme };
|
|
622
638
|
}
|
|
623
639
|
|
|
624
640
|
declare class AuthClient extends AuthService {
|
|
@@ -671,4 +687,4 @@ declare namespace index {
|
|
|
671
687
|
export { index_AuthClient as AuthClient, index_TokenVerifier as TokenVerifier, index_createTokenVerifier as createTokenVerifier, index_getTokenVerifier as getTokenVerifier, index_verifyToken as verifyToken };
|
|
672
688
|
}
|
|
673
689
|
|
|
674
|
-
export { type AuditLog, type AuthConfig, AuthFlow, AuthProvider, type AuthResponse, AuthService, AvatarManager, AvatarUploader, ChangePassword, type CsrfTokenResponse, EmailVerificationPage, ForgotPassword, HttpClient, type LinkedAccount, type LoginData, LoginForm, type MFASetup, type OAuthConfig, type OAuthProvider, OtpForm, ProtectedRoute, PublicRoute, type RegisterData, RegisterForm, ResetPassword, type Session, SignIn, SignOut, SignUp, type SocketConfig, type SocketEventHandler, SocketService, type UpdateUserData, type UpfilesConfig, type UseAuthReturn, type User, UserButton, UserProfile, type VerifyData, VerifyEmail, index as node, index$1 as react, useAuth$1 as useAuth };
|
|
690
|
+
export { type AuditLog, type AuthConfig, AuthFlow, AuthProvider, type AuthResponse, AuthService, AvatarManager, AvatarUploader, ChangePassword, type CsrfTokenResponse, EmailVerificationPage, ForgotPassword, HttpClient, type LinkedAccount, type LoginData, LoginForm, type MFASetup, type OAuthConfig, type OAuthProvider, OtpForm, ProtectedRoute, PublicRoute, type RegisterData, RegisterForm, ResetPassword, type Session, SignIn, SignOut, SignUp, type SocketConfig, type SocketEventHandler, SocketService, SuperAdminSignIn, type UpdateUserData, type UpfilesConfig, type UseAuthReturn, type User, UserButton, UserProfile, type VerifyData, VerifyEmail, index as node, index$1 as react, useAuth$1 as useAuth };
|