@bigso/auth-sdk 0.4.7 → 0.5.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.
@@ -1,51 +0,0 @@
1
- interface BigsoAuthOptions {
2
- /** Client ID registrado en el SSO */
3
- clientId: string;
4
- /** Origen del SSO (ej: https://sso.bigso.co) */
5
- ssoOrigin: string;
6
- /** URL del JWKS para verificar firmas (ej: https://sso.bigso.co/.well-known/jwks.json) */
7
- jwksUrl: string;
8
- /** Timeout en milisegundos (por defecto 5000) */
9
- timeout?: number;
10
- /** Activar logs de depuración */
11
- debug?: boolean;
12
- /** URI de redirección registrada (opcional, si se requiere validación exacta) */
13
- redirectUri?: string;
14
- /** Sugerencia de tenant (opcional) */
15
- tenantHint?: string;
16
- /** Tema visual del iframe ('light' | 'dark', por defecto 'light') */
17
- theme?: 'light' | 'dark';
18
- }
19
- interface SsoUser {
20
- userId: string;
21
- email: string;
22
- firstName: string;
23
- lastName: string;
24
- }
25
- interface SsoTenant {
26
- tenantId: string;
27
- name: string;
28
- slug: string;
29
- role: string;
30
- permissions: string[];
31
- }
32
- interface SsoSessionData {
33
- user: SsoUser;
34
- tenant: SsoTenant;
35
- appId: string;
36
- expiresAt: string;
37
- }
38
- interface SsoRefreshData {
39
- sessionToken: string;
40
- refreshToken: string;
41
- expiresAt: string;
42
- refreshExpiresAt: string;
43
- }
44
- interface SsoExchangeResponse extends SsoSessionData {
45
- success: boolean;
46
- sessionToken: string;
47
- refreshToken?: string;
48
- refreshExpiresAt?: string;
49
- }
50
-
51
- export type { BigsoAuthOptions as B, SsoSessionData as S, SsoExchangeResponse as a, SsoRefreshData as b };
@@ -1,51 +0,0 @@
1
- interface BigsoAuthOptions {
2
- /** Client ID registrado en el SSO */
3
- clientId: string;
4
- /** Origen del SSO (ej: https://sso.bigso.co) */
5
- ssoOrigin: string;
6
- /** URL del JWKS para verificar firmas (ej: https://sso.bigso.co/.well-known/jwks.json) */
7
- jwksUrl: string;
8
- /** Timeout en milisegundos (por defecto 5000) */
9
- timeout?: number;
10
- /** Activar logs de depuración */
11
- debug?: boolean;
12
- /** URI de redirección registrada (opcional, si se requiere validación exacta) */
13
- redirectUri?: string;
14
- /** Sugerencia de tenant (opcional) */
15
- tenantHint?: string;
16
- /** Tema visual del iframe ('light' | 'dark', por defecto 'light') */
17
- theme?: 'light' | 'dark';
18
- }
19
- interface SsoUser {
20
- userId: string;
21
- email: string;
22
- firstName: string;
23
- lastName: string;
24
- }
25
- interface SsoTenant {
26
- tenantId: string;
27
- name: string;
28
- slug: string;
29
- role: string;
30
- permissions: string[];
31
- }
32
- interface SsoSessionData {
33
- user: SsoUser;
34
- tenant: SsoTenant;
35
- appId: string;
36
- expiresAt: string;
37
- }
38
- interface SsoRefreshData {
39
- sessionToken: string;
40
- refreshToken: string;
41
- expiresAt: string;
42
- refreshExpiresAt: string;
43
- }
44
- interface SsoExchangeResponse extends SsoSessionData {
45
- success: boolean;
46
- sessionToken: string;
47
- refreshToken?: string;
48
- refreshExpiresAt?: string;
49
- }
50
-
51
- export type { BigsoAuthOptions as B, SsoSessionData as S, SsoExchangeResponse as a, SsoRefreshData as b };