@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.
- 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 +529 -67
- package/dist/index.components.js.map +1 -1
- package/dist/index.components.mjs +529 -68
- package/dist/index.components.mjs.map +1 -1
- package/dist/index.d.mts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.js +530 -67
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +530 -68
- package/dist/index.mjs.map +1 -1
- package/dist/index.next.d.mts +17 -1
- package/dist/index.next.d.ts +17 -1
- package/dist/index.next.js +529 -67
- package/dist/index.next.js.map +1 -1
- package/dist/index.next.mjs +529 -68
- package/dist/index.next.mjs.map +1 -1
- package/dist/index.next.server.d.mts +3 -0
- package/dist/index.next.server.d.ts +3 -0
- package/dist/index.next.server.js +85 -8
- package/dist/index.next.server.js.map +1 -1
- package/dist/index.next.server.mjs +85 -8
- package/dist/index.next.server.mjs.map +1 -1
- package/dist/index.node.d.mts +3 -0
- package/dist/index.node.d.ts +3 -0
- package/dist/index.node.js +85 -8
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +85 -8
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.next.d.mts
CHANGED
|
@@ -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 };
|
package/dist/index.next.d.ts
CHANGED
|
@@ -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 };
|