@saxenapackages/auth-sdk 1.0.0
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 +195 -0
- package/dist/api/authApi.d.ts +19 -0
- package/dist/api/axios.d.ts +5 -0
- package/dist/auth-sdk.css +1 -0
- package/dist/components/alert/Alert.d.ts +9 -0
- package/dist/components/authWidget/index.d.ts +7 -0
- package/dist/components/forgotPassword/index.d.ts +8 -0
- package/dist/components/googleLogin/index.d.ts +7 -0
- package/dist/components/login/index.d.ts +9 -0
- package/dist/components/otp/index.d.ts +12 -0
- package/dist/components/resetPassword/index.d.ts +8 -0
- package/dist/components/signup/index.d.ts +8 -0
- package/dist/components/updateUser/index.d.ts +9 -0
- package/dist/hooks/useAuth.d.ts +3 -0
- package/dist/hooks/useLogin.d.ts +8 -0
- package/dist/hooks/useOtp.d.ts +9 -0
- package/dist/hooks/useResetPassword.d.ts +8 -0
- package/dist/hooks/useSignup.d.ts +8 -0
- package/dist/hooks/useUpdateUser.d.ts +8 -0
- package/dist/hooks/useVerifyIdentity.d.ts +8 -0
- package/dist/index.cjs +23 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +2248 -0
- package/dist/index.js.map +1 -0
- package/dist/provider/AuthContext.d.ts +24 -0
- package/dist/provider/AuthProvider.d.ts +8 -0
- package/dist/services/event.service.d.ts +9 -0
- package/dist/services/storage.service.d.ts +10 -0
- package/dist/services/token.service.d.ts +10 -0
- package/dist/setupTests.d.ts +0 -0
- package/dist/theme/defaultTheme.d.ts +3 -0
- package/dist/types/api.d.ts +10 -0
- package/dist/types/auth.d.ts +28 -0
- package/dist/types/config.d.ts +139 -0
- package/dist/utils/errors.d.ts +7 -0
- package/dist/utils/helpers.d.ts +8 -0
- package/dist/validation/index.d.ts +6 -0
- package/dist/validation/login.d.ts +28 -0
- package/dist/validation/otp.d.ts +8 -0
- package/dist/validation/resetPassword.d.ts +17 -0
- package/dist/validation/signup.d.ts +27 -0
- package/dist/validation/updateUser.d.ts +38 -0
- package/dist/validation/verifyIdentity.d.ts +8 -0
- package/package.json +49 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { AuthProvider } from './provider/AuthProvider';
|
|
2
|
+
export { AuthContext } from './provider/AuthContext';
|
|
3
|
+
export type { AuthContextProps } from './provider/AuthContext';
|
|
4
|
+
export { useAuth } from './hooks/useAuth';
|
|
5
|
+
export { useLogin } from './hooks/useLogin';
|
|
6
|
+
export { useSignup } from './hooks/useSignup';
|
|
7
|
+
export { useVerifyIdentity } from './hooks/useVerifyIdentity';
|
|
8
|
+
export { useOtp } from './hooks/useOtp';
|
|
9
|
+
export { useResetPassword } from './hooks/useResetPassword';
|
|
10
|
+
export { useUpdateUser } from './hooks/useUpdateUser';
|
|
11
|
+
export { eventService } from './services/event.service';
|
|
12
|
+
export { Login } from './components/login';
|
|
13
|
+
export type { LoginProps } from './components/login';
|
|
14
|
+
export { Signup } from './components/signup';
|
|
15
|
+
export type { SignupProps } from './components/signup';
|
|
16
|
+
export { ForgotPassword } from './components/forgotPassword';
|
|
17
|
+
export type { ForgotPasswordProps } from './components/forgotPassword';
|
|
18
|
+
export { OTP } from './components/otp';
|
|
19
|
+
export type { OTPProps } from './components/otp';
|
|
20
|
+
export { ResetPassword } from './components/resetPassword';
|
|
21
|
+
export type { ResetPasswordProps } from './components/resetPassword';
|
|
22
|
+
export { GoogleLogin } from './components/googleLogin';
|
|
23
|
+
export type { GoogleLoginProps } from './components/googleLogin';
|
|
24
|
+
export { UpdateUser } from './components/updateUser';
|
|
25
|
+
export type { UpdateUserProps } from './components/updateUser';
|
|
26
|
+
export { Alert } from './components/alert/Alert';
|
|
27
|
+
export { AuthWidget } from './components/authWidget';
|
|
28
|
+
export type { AuthWidgetProps } from './components/authWidget';
|
|
29
|
+
export { decodeJWT, isTokenExpired } from './utils/helpers';
|
|
30
|
+
export { AuthSdkError, normalizeError } from './utils/errors';
|
|
31
|
+
export type { SdkErrorCode } from './utils/errors';
|
|
32
|
+
export * from './types/auth';
|
|
33
|
+
export * from './types/config';
|
|
34
|
+
export * from './types/api';
|
|
35
|
+
export * from './validation';
|