@thetechfossil/auth2 1.2.20 → 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.
@@ -162,6 +162,8 @@ declare class AuthService {
162
162
  constructor(config: AuthConfig);
163
163
  private loadTokenFromStorage;
164
164
  private saveTokenToStorage;
165
+ private setTokenCookie;
166
+ private removeTokenCookie;
165
167
  private removeTokenFromStorage;
166
168
  private connectSocket;
167
169
  private disconnectSocket;
@@ -250,6 +252,7 @@ declare class HttpClient {
250
252
  private frontendBaseUrl;
251
253
  private baseUrl;
252
254
  constructor(baseUrl: string, defaultHeaders?: Record<string, string>);
255
+ private createUserFriendlyError;
253
256
  get<T>(endpoint: string, headers?: Record<string, string>): Promise<T>;
254
257
  post<T>(endpoint: string, data?: any, headers?: Record<string, string>): Promise<T>;
255
258
  put<T>(endpoint: string, data?: any, headers?: Record<string, string>): Promise<T>;
@@ -504,6 +507,19 @@ interface UserProfileProps {
504
507
  }
505
508
  declare const UserProfile: React.FC<UserProfileProps>;
506
509
 
510
+ interface SuperAdminSignInProps {
511
+ redirectUrl?: string;
512
+ appearance?: {
513
+ elements?: {
514
+ formButtonPrimary?: React.CSSProperties;
515
+ card?: React.CSSProperties;
516
+ headerTitle?: React.CSSProperties;
517
+ formFieldInput?: React.CSSProperties;
518
+ };
519
+ };
520
+ }
521
+ declare const SuperAdminSignIn: React.FC<SuperAdminSignInProps>;
522
+
507
523
  interface PhoneInputProps {
508
524
  value: string;
509
525
  onChange: (value: string) => void;
@@ -587,4 +603,4 @@ interface UseNextAuthReturn {
587
603
  }
588
604
  declare const useNextAuth: (config: AuthConfig) => UseNextAuthReturn;
589
605
 
590
- export { type AuditLog, type AuthConfig, AuthFlow, AuthProvider, type AuthResponse, AuthService, AuthThemeProvider, AvatarManager, type AvatarManagerProps, AvatarUploader, type AvatarUploaderProps, ChangePassword, type CsrfTokenResponse, EmailVerificationPage, ForgotPassword, HttpClient, type LinkedAccount, type LoginData, LoginForm, type MFASetup, type OAuthConfig, type OAuthProvider, OtpForm, PhoneInput, ProtectedRoute, PublicRoute, type RegisterData, RegisterForm, type RegisterFormProps, ResetPassword, type Session, SignIn, SignOut, SignUp, type UpdateUserData, type UpfilesConfig, type UseAuthReturn, type User, UserButton, UserProfile, type VerifyData, VerifyEmail, useAuth, useAuth$1 as useAuthLegacy, useAuthTheme, useNextAuth };
606
+ export { type AuditLog, type AuthConfig, AuthFlow, AuthProvider, type AuthResponse, AuthService, AuthThemeProvider, AvatarManager, type AvatarManagerProps, AvatarUploader, type AvatarUploaderProps, ChangePassword, type CsrfTokenResponse, EmailVerificationPage, ForgotPassword, HttpClient, type LinkedAccount, type LoginData, LoginForm, type MFASetup, type OAuthConfig, type OAuthProvider, OtpForm, PhoneInput, ProtectedRoute, PublicRoute, type RegisterData, RegisterForm, type RegisterFormProps, ResetPassword, type Session, SignIn, SignOut, SignUp, SuperAdminSignIn, type UpdateUserData, type UpfilesConfig, type UseAuthReturn, type User, UserButton, UserProfile, type VerifyData, VerifyEmail, useAuth, useAuth$1 as useAuthLegacy, useAuthTheme, useNextAuth };
@@ -162,6 +162,8 @@ declare class AuthService {
162
162
  constructor(config: AuthConfig);
163
163
  private loadTokenFromStorage;
164
164
  private saveTokenToStorage;
165
+ private setTokenCookie;
166
+ private removeTokenCookie;
165
167
  private removeTokenFromStorage;
166
168
  private connectSocket;
167
169
  private disconnectSocket;
@@ -250,6 +252,7 @@ declare class HttpClient {
250
252
  private frontendBaseUrl;
251
253
  private baseUrl;
252
254
  constructor(baseUrl: string, defaultHeaders?: Record<string, string>);
255
+ private createUserFriendlyError;
253
256
  get<T>(endpoint: string, headers?: Record<string, string>): Promise<T>;
254
257
  post<T>(endpoint: string, data?: any, headers?: Record<string, string>): Promise<T>;
255
258
  put<T>(endpoint: string, data?: any, headers?: Record<string, string>): Promise<T>;
@@ -504,6 +507,19 @@ interface UserProfileProps {
504
507
  }
505
508
  declare const UserProfile: React.FC<UserProfileProps>;
506
509
 
510
+ interface SuperAdminSignInProps {
511
+ redirectUrl?: string;
512
+ appearance?: {
513
+ elements?: {
514
+ formButtonPrimary?: React.CSSProperties;
515
+ card?: React.CSSProperties;
516
+ headerTitle?: React.CSSProperties;
517
+ formFieldInput?: React.CSSProperties;
518
+ };
519
+ };
520
+ }
521
+ declare const SuperAdminSignIn: React.FC<SuperAdminSignInProps>;
522
+
507
523
  interface PhoneInputProps {
508
524
  value: string;
509
525
  onChange: (value: string) => void;
@@ -587,4 +603,4 @@ interface UseNextAuthReturn {
587
603
  }
588
604
  declare const useNextAuth: (config: AuthConfig) => UseNextAuthReturn;
589
605
 
590
- export { type AuditLog, type AuthConfig, AuthFlow, AuthProvider, type AuthResponse, AuthService, AuthThemeProvider, AvatarManager, type AvatarManagerProps, AvatarUploader, type AvatarUploaderProps, ChangePassword, type CsrfTokenResponse, EmailVerificationPage, ForgotPassword, HttpClient, type LinkedAccount, type LoginData, LoginForm, type MFASetup, type OAuthConfig, type OAuthProvider, OtpForm, PhoneInput, ProtectedRoute, PublicRoute, type RegisterData, RegisterForm, type RegisterFormProps, ResetPassword, type Session, SignIn, SignOut, SignUp, type UpdateUserData, type UpfilesConfig, type UseAuthReturn, type User, UserButton, UserProfile, type VerifyData, VerifyEmail, useAuth, useAuth$1 as useAuthLegacy, useAuthTheme, useNextAuth };
606
+ export { type AuditLog, type AuthConfig, AuthFlow, AuthProvider, type AuthResponse, AuthService, AuthThemeProvider, AvatarManager, type AvatarManagerProps, AvatarUploader, type AvatarUploaderProps, ChangePassword, type CsrfTokenResponse, EmailVerificationPage, ForgotPassword, HttpClient, type LinkedAccount, type LoginData, LoginForm, type MFASetup, type OAuthConfig, type OAuthProvider, OtpForm, PhoneInput, ProtectedRoute, PublicRoute, type RegisterData, RegisterForm, type RegisterFormProps, ResetPassword, type Session, SignIn, SignOut, SignUp, SuperAdminSignIn, type UpdateUserData, type UpfilesConfig, type UseAuthReturn, type User, UserButton, UserProfile, type VerifyData, VerifyEmail, useAuth, useAuth$1 as useAuthLegacy, useAuthTheme, useNextAuth };