@ollaid/native-sso 2.7.8 → 2.8.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/dist/components/AvatarCropModal.d.ts +1 -1
- package/dist/components/DebugPanel.d.ts +3 -2
- package/dist/components/LoginModal.d.ts +2 -2
- package/dist/components/NativeSSOPage.d.ts +1 -1
- package/dist/components/OnboardingModal.d.ts +1 -1
- package/dist/components/PasswordRecoveryModal.d.ts +1 -1
- package/dist/components/PasswordRedirectModal.d.ts +12 -0
- package/dist/components/SignupModal.d.ts +2 -2
- package/dist/components/ui.d.ts +1 -1
- package/dist/hooks/useLogout.d.ts +1 -1
- package/dist/hooks/useMobilePassword.d.ts +1 -1
- package/dist/hooks/useMobileRegistration.d.ts +1 -1
- package/dist/hooks/useNativeAuth.d.ts +3 -3
- package/dist/hooks/useTokenHealthCheck.d.ts +2 -2
- package/dist/index.cjs +309 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +310 -22
- package/dist/index.js.map +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/services/api.d.ts +5 -5
- package/dist/services/debugLogger.d.ts +1 -1
- package/dist/services/iamAccount.d.ts +1 -1
- package/dist/services/mobilePassword.d.ts +1 -1
- package/dist/services/mobileRegistration.d.ts +1 -1
- package/dist/services/nativeAuth.d.ts +1 -1
- package/dist/services/profile.d.ts +1 -1
- package/dist/services/profileChange.d.ts +1 -1
- package/dist/services/profileMedia.d.ts +1 -1
- package/dist/types/mobile.d.ts +1 -1
- package/dist/types/native.d.ts +1 -1
- package/package.json +1 -1
package/dist/provider.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* NativeSSOProvider — React Context pour @ollaid/native-sso
|
|
3
3
|
* Centralise la configuration pour les hooks et composants individuels
|
|
4
4
|
*
|
|
5
|
-
* @version 2.7.
|
|
5
|
+
* @version 2.7.9
|
|
6
6
|
*/
|
|
7
7
|
import { type ReactNode } from 'react';
|
|
8
8
|
import { type NativeStorageAdapter } from './services/api';
|
package/dist/services/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Client API pour @ollaid/native-sso
|
|
3
3
|
* Gestion des requêtes HTTP avec timeout, device ID, token storage
|
|
4
4
|
*
|
|
5
|
-
* @version 2.7.
|
|
5
|
+
* @version 2.7.9
|
|
6
6
|
*/
|
|
7
7
|
export type ApiErrorType = 'network' | 'timeout' | 'server' | 'validation' | 'auth' | 'unknown';
|
|
8
8
|
export declare class ApiError extends Error {
|
|
@@ -30,7 +30,7 @@ export interface NativeAuthConfig {
|
|
|
30
30
|
configPrefix?: string;
|
|
31
31
|
/**
|
|
32
32
|
* Stockage session injectable.
|
|
33
|
-
* Défaut:
|
|
33
|
+
* Défaut: storage navigateur chiffré, mémoire en fallback.
|
|
34
34
|
* Utile pour Capacitor ou des wrappers secure-storage côté app consommatrice.
|
|
35
35
|
*/
|
|
36
36
|
storage?: NativeStorageAdapter;
|
|
@@ -50,7 +50,7 @@ export declare const getSaasApiBaseUrl: () => string;
|
|
|
50
50
|
export declare const getIamApiBaseUrl: () => string;
|
|
51
51
|
export declare const getDeviceId: () => string;
|
|
52
52
|
/**
|
|
53
|
-
* Stable session UUID (instance id) persisted in
|
|
53
|
+
* Stable session UUID (instance id) persisted in storage.
|
|
54
54
|
*
|
|
55
55
|
* This is NOT a security token. It is used to disambiguate sessions across devices/webviews
|
|
56
56
|
* and to help backends implement multi-session behavior safely.
|
|
@@ -102,7 +102,7 @@ export declare const setAuthToken: (token: string) => void;
|
|
|
102
102
|
export declare const getAuthToken: () => string | null;
|
|
103
103
|
/**
|
|
104
104
|
* @deprecated Utilisez `logout()` à la place. `clearAuthToken()` ne fait que nettoyer
|
|
105
|
-
* le
|
|
105
|
+
* le storage sans révoquer les sessions côté SaaS et IAM, ce qui laisse des
|
|
106
106
|
* sessions orphelines actives. `logout()` garantit la double revocation complète.
|
|
107
107
|
*/
|
|
108
108
|
export declare const clearAuthToken: () => void;
|
|
@@ -131,7 +131,7 @@ export declare const repairNativeSsoStorage: () => NativeSsoStorageRepairResult;
|
|
|
131
131
|
/**
|
|
132
132
|
* Déconnexion complète et sécurisée.
|
|
133
133
|
*
|
|
134
|
-
* Effectue la double revocation (SaaS + IAM) puis nettoie le
|
|
134
|
+
* Effectue la double revocation (SaaS + IAM) puis nettoie le storage.
|
|
135
135
|
* **Toute déconnexion frontend DOIT passer par cette fonction** pour éviter
|
|
136
136
|
* les sessions orphelines sur l'IAM.
|
|
137
137
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Ne JAMAIS appeler ces méthodes depuis du code frontend/navigateur car la
|
|
9
9
|
* secret_key serait exposée dans les DevTools réseau.
|
|
10
10
|
*
|
|
11
|
-
* @version 2.7.
|
|
11
|
+
* @version 2.7.9
|
|
12
12
|
*/
|
|
13
13
|
import type { LinkPhoneRequest, LinkPhoneResponse, LinkEmailRequest, LinkEmailResponse, RefreshUserInfoSingleRequest, RefreshUserInfoSingleResponse, RefreshUserInfoBulkRequest, RefreshUserInfoBulkResponse, UpdateAvatarRequest, UpdateAvatarResponse, ResetAvatarRequest, ResetAvatarResponse } from '../types/native';
|
|
14
14
|
export declare const iamAccountService: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Service de récupération de mot de passe v1.0
|
|
3
3
|
* Architecture Frontend-First : Appels directs à l'IAM
|
|
4
4
|
*
|
|
5
|
-
* @version 2.7.
|
|
5
|
+
* @version 2.7.9
|
|
6
6
|
*/
|
|
7
7
|
import { ApiError } from './api';
|
|
8
8
|
import type { MobilePasswordInitResponse, MobilePasswordSelectMethodResponse, MobilePasswordResetResponse, MobilePasswordResendResponse } from '../types/mobile';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Service d'inscription Mobile SSO v1.0
|
|
3
3
|
* Architecture Frontend-First : Appels directs à l'IAM via nativeAuth
|
|
4
4
|
*
|
|
5
|
-
* @version 2.7.
|
|
5
|
+
* @version 2.7.9
|
|
6
6
|
*/
|
|
7
7
|
import type { MobileRegistrationFormData, MobileVerifyOtpResponse, MobileRegistrationCompleteResponse, MobileResendOtpResponse } from '../types/mobile';
|
|
8
8
|
import type { NativeInitResponse } from '../types/native';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Service d'authentification Native Mobile SSO v1.0
|
|
3
3
|
* Architecture Frontend-First : Direct IAM après encryption
|
|
4
4
|
*
|
|
5
|
-
* @version 2.7.
|
|
5
|
+
* @version 2.7.9
|
|
6
6
|
*/
|
|
7
7
|
import type { NativeAuthType, NativeEncryptRequest, NativeEncryptResponse, NativeInitResponse, NativeValidateResponse, NativeGrantAccessResponse, NativeResendOtpResponse, NativeExchangeResponse, NativeCredentials, NativeRefreshResponse } from '../types/native';
|
|
8
8
|
export declare const nativeAuthService: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Profile change service for @ollaid/native-sso
|
|
3
3
|
* Uses authenticated IAM endpoints for email / phone change with OTP confirmation.
|
|
4
4
|
*
|
|
5
|
-
* @version 2.7.
|
|
5
|
+
* @version 2.7.9
|
|
6
6
|
*/
|
|
7
7
|
export type ProfileChangeKind = 'email' | 'phone';
|
|
8
8
|
export type ProfileChangeMethod = 'email' | 'phone';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Profile media service for @ollaid/native-sso
|
|
3
3
|
* Uploads the cropped avatar to the IAM authenticated profile endpoint.
|
|
4
4
|
*
|
|
5
|
-
* @version 2.7.
|
|
5
|
+
* @version 2.7.9
|
|
6
6
|
*/
|
|
7
7
|
import type { UserInfos } from '../types/native';
|
|
8
8
|
export interface ProfileImageUploadResponse {
|
package/dist/types/mobile.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Types pour le password recovery et registration Mobile SSO v1.0
|
|
3
3
|
*
|
|
4
|
-
* @version 2.7.
|
|
4
|
+
* @version 2.7.9
|
|
5
5
|
*/
|
|
6
6
|
export type MobilePasswordStatus = 'idle' | 'choice_required' | 'pending_otp' | 'pending_password' | 'completed';
|
|
7
7
|
export interface MobilePasswordState {
|
package/dist/types/native.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Types pour l'authentification Native SSO v1.0
|
|
3
3
|
* Architecture Frontend-First avec encryption directe
|
|
4
4
|
*
|
|
5
|
-
* @version 2.7.
|
|
5
|
+
* @version 2.7.9
|
|
6
6
|
*/
|
|
7
7
|
export type NativeAuthType = 'login_email' | 'login_phone' | 'login_access_otp' | 'register' | 'recovery_password';
|
|
8
8
|
export type AccountType = 'email' | 'phone-only';
|
package/package.json
CHANGED