@ollaid/native-sso 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 +1682 -0
- package/dist/components/AppsLogoSlider.d.ts +9 -0
- package/dist/components/DebugPanel.d.ts +12 -0
- package/dist/components/LoginModal.d.ts +20 -0
- package/dist/components/NativeSSOPage.d.ts +35 -0
- package/dist/components/OTPInput.d.ts +13 -0
- package/dist/components/OnboardingModal.d.ts +23 -0
- package/dist/components/PasswordRecoveryModal.d.ts +17 -0
- package/dist/components/PhoneInput.d.ts +15 -0
- package/dist/components/SignupModal.d.ts +18 -0
- package/dist/components/ui.d.ts +70 -0
- package/dist/hooks/useMobilePassword.d.ts +94 -0
- package/dist/hooks/useMobileRegistration.d.ts +148 -0
- package/dist/hooks/useNativeAuth.d.ts +262 -0
- package/dist/hooks/useTokenHealthCheck.d.ts +25 -0
- package/dist/index.cjs +4493 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.js +4493 -0
- package/dist/index.js.map +1 -0
- package/dist/provider.d.ts +38 -0
- package/dist/services/api.d.ts +49 -0
- package/dist/services/debugLogger.d.ts +23 -0
- package/dist/services/iamAccount.d.ts +45 -0
- package/dist/services/mobilePassword.d.ts +19 -0
- package/dist/services/mobileRegistration.d.ts +31 -0
- package/dist/services/nativeAuth.d.ts +55 -0
- package/dist/types/mobile.d.ts +128 -0
- package/dist/types/native.d.ts +289 -0
- package/package.json +50 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ollaid/native-sso — Package NPM Frontend-First pour Native SSO
|
|
3
|
+
*
|
|
4
|
+
* Usage rapide :
|
|
5
|
+
* ```tsx
|
|
6
|
+
* import { NativeSSOPage } from '@ollaid/native-sso';
|
|
7
|
+
* <Route path="/auth/sso" element={
|
|
8
|
+
* <NativeSSOPage saasApiUrl="..." iamApiUrl="..." onLoginSuccess={(t, u) => {}} />
|
|
9
|
+
* } />
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* @version 1.0.0
|
|
13
|
+
*/
|
|
14
|
+
export { NativeSSOPage } from './components/NativeSSOPage';
|
|
15
|
+
export type { NativeSSOPageProps } from './components/NativeSSOPage';
|
|
16
|
+
export { NativeSSOProvider, useNativeSSOConfig } from './provider';
|
|
17
|
+
export type { NativeSSOConfig, NativeSSOProviderProps } from './provider';
|
|
18
|
+
export { LoginModal } from './components/LoginModal';
|
|
19
|
+
export type { LoginModalProps } from './components/LoginModal';
|
|
20
|
+
export { SignupModal } from './components/SignupModal';
|
|
21
|
+
export type { SignupModalProps } from './components/SignupModal';
|
|
22
|
+
export { PasswordRecoveryModal } from './components/PasswordRecoveryModal';
|
|
23
|
+
export { OnboardingModal } from './components/OnboardingModal';
|
|
24
|
+
export type { OnboardingModalProps } from './components/OnboardingModal';
|
|
25
|
+
export { default as OTPInput } from './components/OTPInput';
|
|
26
|
+
export { default as PhoneInput } from './components/PhoneInput';
|
|
27
|
+
export { default as AppsLogoSlider } from './components/AppsLogoSlider';
|
|
28
|
+
export { useNativeAuth } from './hooks/useNativeAuth';
|
|
29
|
+
export type { UseNativeAuthOptions } from './hooks/useNativeAuth';
|
|
30
|
+
export { useTokenHealthCheck } from './hooks/useTokenHealthCheck';
|
|
31
|
+
export type { UseTokenHealthCheckOptions } from './hooks/useTokenHealthCheck';
|
|
32
|
+
export { useMobilePassword } from './hooks/useMobilePassword';
|
|
33
|
+
export { useMobileRegistration } from './hooks/useMobileRegistration';
|
|
34
|
+
export { nativeAuthService } from './services/nativeAuth';
|
|
35
|
+
export { mobilePasswordService } from './services/mobilePassword';
|
|
36
|
+
export { iamAccountService } from './services/iamAccount';
|
|
37
|
+
export { setNativeAuthConfig, getNativeAuthConfig, ApiError, getAuthToken, getAuthUser, getAccountType } from './services/api';
|
|
38
|
+
export type { NativeAuthConfig, ApiErrorType } from './services/api';
|
|
39
|
+
export type { NativeAuthType, NativeAuthStatus, AccountType, RegistrationType, NativeCredentials, NativeEncryptRequest, NativeEncryptResponse, NativeConfigResponse, NativeInitResponse, NativeValidateResponse, NativeGrantAccessResponse, NativeResendOtpResponse, NativeExchangeResponse, NativeUser, NativeAuthState, UserInfos, LinkPhoneRequest, LinkPhoneResponse, LinkEmailRequest, LinkEmailResponse, RefreshUserInfoSingleRequest, RefreshUserInfoSingleResponse, RefreshUserInfoBulkRequest, RefreshUserInfoBulkResponse, UpdateAvatarRequest, UpdateAvatarResponse, ResetAvatarRequest, ResetAvatarResponse, CheckTokenResponse, } from './types/native';
|
|
40
|
+
export type { MobilePasswordState, MobilePasswordStatus, } from './types/mobile';
|