@glideidentity/web-client-sdk 4.4.10 → 5.0.1-beta.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.
Files changed (102) hide show
  1. package/README.md +167 -19
  2. package/dist/adapters/angular/index.js +0 -1
  3. package/dist/adapters/angular/phone-auth.service.d.ts +0 -18
  4. package/dist/adapters/angular/phone-auth.service.js +0 -26
  5. package/dist/adapters/react/index.d.ts +1 -1
  6. package/dist/adapters/react/index.js +0 -3
  7. package/dist/adapters/react/useClient.js +0 -1
  8. package/dist/adapters/react/usePhoneAuth.js +1 -16
  9. package/dist/adapters/vanilla/client.js +0 -1
  10. package/dist/adapters/vanilla/index.js +0 -1
  11. package/dist/adapters/vanilla/phone-auth.js +0 -31
  12. package/dist/adapters/vue/index.d.ts +1 -1
  13. package/dist/adapters/vue/index.js +0 -4
  14. package/dist/adapters/vue/useClient.js +0 -5
  15. package/dist/adapters/vue/usePhoneAuth.js +1 -20
  16. package/dist/browser/web-client-sdk.min.js +1 -1
  17. package/dist/browser/web-client-sdk.min.js.LICENSE.txt +1 -1
  18. package/dist/browser.d.ts +1 -1
  19. package/dist/browser.js +0 -6
  20. package/dist/core/client.js +0 -12
  21. package/dist/core/logger.js +1 -81
  22. package/dist/core/phone-auth/api-types.d.ts +0 -13
  23. package/dist/core/phone-auth/api-types.js +0 -83
  24. package/dist/core/phone-auth/client.js +27 -374
  25. package/dist/core/phone-auth/error-utils.js +1 -83
  26. package/dist/core/phone-auth/index.d.ts +1 -1
  27. package/dist/core/phone-auth/index.js +1 -3
  28. package/dist/core/phone-auth/status-types.d.ts +0 -78
  29. package/dist/core/phone-auth/status-types.js +0 -17
  30. package/dist/core/phone-auth/strategies/desktop.js +8 -126
  31. package/dist/core/phone-auth/strategies/index.d.ts +0 -4
  32. package/dist/core/phone-auth/strategies/index.js +0 -4
  33. package/dist/core/phone-auth/strategies/link.js +10 -88
  34. package/dist/core/phone-auth/strategies/ts43.d.ts +0 -19
  35. package/dist/core/phone-auth/strategies/ts43.js +2 -33
  36. package/dist/core/phone-auth/strategies/types.js +0 -4
  37. package/dist/core/phone-auth/type-guards.js +0 -131
  38. package/dist/core/phone-auth/types.js +0 -32
  39. package/dist/core/phone-auth/ui/mobile-debug-console.js +2 -28
  40. package/dist/core/phone-auth/ui/modal.d.ts +33 -55
  41. package/dist/core/phone-auth/ui/modal.js +889 -422
  42. package/dist/core/phone-auth/validation-utils.d.ts +0 -13
  43. package/dist/core/phone-auth/validation-utils.js +2 -81
  44. package/dist/core/version.js +1 -2
  45. package/dist/esm/adapters/angular/index.js +0 -1
  46. package/dist/esm/adapters/angular/phone-auth.service.d.ts +0 -18
  47. package/dist/esm/adapters/angular/phone-auth.service.js +0 -26
  48. package/dist/esm/adapters/react/index.d.ts +1 -1
  49. package/dist/esm/adapters/react/index.js +0 -3
  50. package/dist/esm/adapters/react/useClient.js +0 -1
  51. package/dist/esm/adapters/react/usePhoneAuth.js +1 -16
  52. package/dist/esm/adapters/vanilla/client.js +0 -1
  53. package/dist/esm/adapters/vanilla/index.js +0 -1
  54. package/dist/esm/adapters/vanilla/phone-auth.d.ts +0 -24
  55. package/dist/esm/adapters/vanilla/phone-auth.js +0 -31
  56. package/dist/esm/adapters/vue/index.d.ts +1 -1
  57. package/dist/esm/adapters/vue/index.js +0 -4
  58. package/dist/esm/adapters/vue/useClient.js +0 -5
  59. package/dist/esm/adapters/vue/usePhoneAuth.js +1 -20
  60. package/dist/esm/browser.d.ts +1 -1
  61. package/dist/esm/browser.js +0 -6
  62. package/dist/esm/core/client.d.ts +0 -10
  63. package/dist/esm/core/client.js +0 -12
  64. package/dist/esm/core/logger.d.ts +0 -53
  65. package/dist/esm/core/logger.js +1 -81
  66. package/dist/esm/core/phone-auth/api-types.d.ts +0 -328
  67. package/dist/esm/core/phone-auth/api-types.js +0 -83
  68. package/dist/esm/core/phone-auth/client.d.ts +0 -144
  69. package/dist/esm/core/phone-auth/client.js +28 -375
  70. package/dist/esm/core/phone-auth/error-utils.d.ts +0 -29
  71. package/dist/esm/core/phone-auth/error-utils.js +1 -83
  72. package/dist/esm/core/phone-auth/index.d.ts +1 -1
  73. package/dist/esm/core/phone-auth/index.js +2 -4
  74. package/dist/esm/core/phone-auth/status-types.d.ts +0 -78
  75. package/dist/esm/core/phone-auth/status-types.js +0 -17
  76. package/dist/esm/core/phone-auth/strategies/desktop.d.ts +0 -63
  77. package/dist/esm/core/phone-auth/strategies/desktop.js +8 -126
  78. package/dist/esm/core/phone-auth/strategies/index.d.ts +0 -4
  79. package/dist/esm/core/phone-auth/strategies/index.js +0 -4
  80. package/dist/esm/core/phone-auth/strategies/link.d.ts +0 -48
  81. package/dist/esm/core/phone-auth/strategies/link.js +10 -88
  82. package/dist/esm/core/phone-auth/strategies/ts43.d.ts +0 -19
  83. package/dist/esm/core/phone-auth/strategies/ts43.js +2 -33
  84. package/dist/esm/core/phone-auth/strategies/types.d.ts +0 -13
  85. package/dist/esm/core/phone-auth/strategies/types.js +0 -4
  86. package/dist/esm/core/phone-auth/type-guards.d.ts +0 -128
  87. package/dist/esm/core/phone-auth/type-guards.js +0 -131
  88. package/dist/esm/core/phone-auth/types.d.ts +0 -108
  89. package/dist/esm/core/phone-auth/types.js +0 -32
  90. package/dist/esm/core/phone-auth/ui/mobile-debug-console.d.ts +0 -4
  91. package/dist/esm/core/phone-auth/ui/mobile-debug-console.js +2 -28
  92. package/dist/esm/core/phone-auth/ui/modal.d.ts +27 -68
  93. package/dist/esm/core/phone-auth/ui/modal.js +889 -422
  94. package/dist/esm/core/phone-auth/validation-utils.d.ts +0 -44
  95. package/dist/esm/core/phone-auth/validation-utils.js +2 -80
  96. package/dist/esm/core/types.d.ts +0 -35
  97. package/dist/esm/core/version.js +1 -2
  98. package/dist/esm/index.d.ts +1 -1
  99. package/dist/esm/index.js +1 -9
  100. package/dist/index.d.ts +1 -1
  101. package/dist/index.js +0 -7
  102. package/package.json +2 -2
@@ -1,65 +1,21 @@
1
- /**
2
- * Validation utilities for phone authentication
3
- */
4
1
  import { PhoneAuthErrorCode } from './error-utils';
5
2
  import type { PLMN, UseCase } from './api-types';
6
- /**
7
- * Validates E.164 phone number format
8
- * @param phoneNumber - Phone number to validate
9
- * @returns Validation result with error if invalid
10
- */
11
3
  export declare function validatePhoneNumber(phoneNumber?: string): {
12
4
  valid: boolean;
13
5
  error?: string;
14
6
  };
15
- /**
16
- * Validates PLMN (MCC/MNC) values
17
- * @param plmn - PLMN object with MCC and MNC
18
- * @returns Validation result
19
- */
20
7
  export declare function validatePlmn(plmn?: PLMN): {
21
8
  valid: boolean;
22
9
  error?: string;
23
10
  };
24
- /**
25
- * Validates use case and phone number combination
26
- * @param useCase - The use case
27
- * @param phoneNumber - The phone number (required for VerifyPhoneNumber)
28
- * @param hasParentSessionId - Whether parent_session_id is provided (allows skipping normal validation)
29
- * @returns Validation result
30
- */
31
11
  export declare function validateUseCaseRequirements(useCase: UseCase, phoneNumber?: string, hasParentSessionId?: boolean): {
32
12
  valid: boolean;
33
13
  error?: string;
34
14
  };
35
- /**
36
- * Validates consent data
37
- * @param consentData - Consent data object
38
- * @returns Validation result
39
- */
40
- export declare function validateConsentData(consentData?: {
41
- consent_text: string;
42
- policy_link: string;
43
- policy_text: string;
44
- }): {
45
- valid: boolean;
46
- error?: string;
47
- };
48
- /**
49
- * Creates a validation error
50
- * @param code - Error code
51
- * @param message - Error message
52
- * @param field - Field that failed validation
53
- */
54
15
  export declare function createValidationError(code: PhoneAuthErrorCode, message: string, field?: string): Error & {
55
16
  code: PhoneAuthErrorCode;
56
17
  field?: string;
57
18
  };
58
- /**
59
- * Validates nonce format
60
- * @param nonce - Nonce string to validate
61
- * @returns Validation result
62
- */
63
19
  export declare function validateNonce(nonce: string): {
64
20
  valid: boolean;
65
21
  error?: string;
@@ -1,17 +1,8 @@
1
- /**
2
- * Validation utilities for phone authentication
3
- */
4
1
  import { USE_CASE } from './api-types';
5
- /**
6
- * Validates E.164 phone number format
7
- * @param phoneNumber - Phone number to validate
8
- * @returns Validation result with error if invalid
9
- */
10
2
  export function validatePhoneNumber(phoneNumber) {
11
3
  if (!phoneNumber) {
12
- return { valid: true }; // Phone number is optional for GetPhoneNumber
4
+ return { valid: true };
13
5
  }
14
- // E.164 format validation - strict, no cleaning
15
6
  const e164Regex = /^\+[1-9]\d{1,14}$/;
16
7
  if (!phoneNumber.startsWith('+')) {
17
8
  return {
@@ -31,7 +22,6 @@ export function validatePhoneNumber(phoneNumber) {
31
22
  error: 'Phone number too long for E.164 format (maximum 15 digits after +)'
32
23
  };
33
24
  }
34
- // Check for any invalid characters (spaces, dashes, parentheses, etc.)
35
25
  if (!/^\+\d+$/.test(phoneNumber)) {
36
26
  return {
37
27
  valid: false,
@@ -46,42 +36,26 @@ export function validatePhoneNumber(phoneNumber) {
46
36
  }
47
37
  return { valid: true };
48
38
  }
49
- /**
50
- * Validates PLMN (MCC/MNC) values
51
- * @param plmn - PLMN object with MCC and MNC
52
- * @returns Validation result
53
- */
54
39
  export function validatePlmn(plmn) {
55
40
  if (!plmn) {
56
- return { valid: true }; // PLMN is optional
41
+ return { valid: true };
57
42
  }
58
43
  const { mcc, mnc } = plmn;
59
- // MCC validation (3 digits) - no range check for telco labs
60
44
  if (!mcc || !/^\d{3}$/.test(mcc)) {
61
45
  return {
62
46
  valid: false,
63
47
  error: 'MCC must be exactly 3 digits'
64
48
  };
65
49
  }
66
- // MNC validation (2 or 3 digits)
67
50
  if (!mnc || !/^\d{2,3}$/.test(mnc)) {
68
51
  return {
69
52
  valid: false,
70
53
  error: 'MNC must be 2 or 3 digits'
71
54
  };
72
55
  }
73
- // No range validation - allowing unofficial MCCs for telco labs
74
56
  return { valid: true };
75
57
  }
76
- /**
77
- * Validates use case and phone number combination
78
- * @param useCase - The use case
79
- * @param phoneNumber - The phone number (required for VerifyPhoneNumber)
80
- * @param hasParentSessionId - Whether parent_session_id is provided (allows skipping normal validation)
81
- * @returns Validation result
82
- */
83
58
  export function validateUseCaseRequirements(useCase, phoneNumber, hasParentSessionId) {
84
- // VerifyPhoneNumber requires a phone number (unless parent_session_id is provided)
85
59
  if (useCase === USE_CASE.VERIFY_PHONE_NUMBER && !phoneNumber && !hasParentSessionId) {
86
60
  return {
87
61
  valid: false,
@@ -90,52 +64,6 @@ export function validateUseCaseRequirements(useCase, phoneNumber, hasParentSessi
90
64
  }
91
65
  return { valid: true };
92
66
  }
93
- /**
94
- * Validates consent data
95
- * @param consentData - Consent data object
96
- * @returns Validation result
97
- */
98
- export function validateConsentData(consentData) {
99
- if (!consentData) {
100
- return { valid: true }; // Consent data is optional
101
- }
102
- const { consent_text: consentText, policy_link: policyLink, policy_text: policyText } = consentData;
103
- if (!consentText || consentText.trim().length === 0) {
104
- return {
105
- valid: false,
106
- error: 'Consent text is required when consent data is provided'
107
- };
108
- }
109
- if (!policyLink || policyLink.trim().length === 0) {
110
- return {
111
- valid: false,
112
- error: 'Policy link is required when consent data is provided'
113
- };
114
- }
115
- // Validate URL format for policy link
116
- try {
117
- new URL(policyLink);
118
- }
119
- catch (_a) {
120
- return {
121
- valid: false,
122
- error: 'Policy link must be a valid URL'
123
- };
124
- }
125
- if (!policyText || policyText.trim().length === 0) {
126
- return {
127
- valid: false,
128
- error: 'Policy text is required when consent data is provided'
129
- };
130
- }
131
- return { valid: true };
132
- }
133
- /**
134
- * Creates a validation error
135
- * @param code - Error code
136
- * @param message - Error message
137
- * @param field - Field that failed validation
138
- */
139
67
  export function createValidationError(code, message, field) {
140
68
  const error = new Error(message);
141
69
  error.code = code;
@@ -144,13 +72,7 @@ export function createValidationError(code, message, field) {
144
72
  }
145
73
  return error;
146
74
  }
147
- /**
148
- * Validates nonce format
149
- * @param nonce - Nonce string to validate
150
- * @returns Validation result
151
- */
152
75
  export function validateNonce(nonce) {
153
- // Nonce should be base64url encoded and have reasonable length
154
76
  const base64urlRegex = /^[A-Za-z0-9_-]+$/;
155
77
  if (!nonce || nonce.length === 0) {
156
78
  return {
@@ -1,51 +1,16 @@
1
1
  import { LogLevel, Logger } from './logger';
2
2
  export interface ClientConfig {
3
- /**
4
- * Base URL for API requests
5
- * Required only if using useQuery() or client.get() methods
6
- * Not required for phone authentication
7
- */
8
3
  baseURL?: string;
9
- /**
10
- * API key for authentication
11
- * Currently not used in the SDK but kept for backward compatibility
12
- */
13
4
  apiKey?: string;
14
- /**
15
- * Request timeout in milliseconds
16
- * @default 10000
17
- */
18
5
  timeout?: number;
19
- /**
20
- * Target origin for authentication
21
- * Used for cross-origin authentication flows
22
- * If not provided, uses baseURL or current origin
23
- */
24
6
  authTargetOrigin?: string;
25
- /**
26
- * Phone authentication endpoints
27
- * If not provided, uses default endpoints relative to baseURL
28
- */
29
7
  phoneAuthEndpoints?: {
30
8
  prepareRequest: string;
31
9
  processResponse: string;
32
10
  };
33
- /**
34
- * Enable debug logging
35
- * @default false
36
- */
37
11
  debug?: boolean;
38
- /**
39
- * Set specific log level
40
- */
41
12
  logLevel?: LogLevel;
42
- /**
43
- * Custom logger implementation
44
- */
45
13
  logger?: Logger;
46
- /**
47
- * Remote logging configuration
48
- */
49
14
  remoteLogging?: {
50
15
  endpoint: string;
51
16
  apiKey: string;
@@ -1,2 +1 @@
1
- // SDK version - injected at build time
2
- export const SDK_VERSION = '4.4.10';
1
+ export const SDK_VERSION = '5.0.1-beta.0';
@@ -2,7 +2,7 @@ export { PhoneAuthClient } from './core/phone-auth';
2
2
  export type { AuthConfig as PhoneAuthConfig, PhoneAuthOptions, PhoneAuthResult, AuthError as PhoneAuthError, AuthStep as PhoneAuthStep } from './core/phone-auth';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './core/phone-auth';
4
4
  export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger, isHeadlessResult, requiresPolling, requiresUserAction } from './core/phone-auth';
5
- export type { PhoneAuthCallbacks, PLMN, SessionInfo, InvokeOptions, ExecutionMode, AuthCredential, AnyExtendedResponse, DesktopExtendedResponse, LinkExtendedResponse, TS43ExtendedResponse, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, DesktopData, ClientInfo, ConsentData, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
5
+ export type { PhoneAuthCallbacks, PLMN, SessionInfo, InvokeOptions, ExecutionMode, AuthCredential, AnyExtendedResponse, DesktopExtendedResponse, LinkExtendedResponse, TS43ExtendedResponse, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, DesktopData, ClientInfo, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
6
6
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
7
7
  export { DesktopHandler } from './core/phone-auth/strategies/desktop';
8
8
  export type { DesktopAuthOptions, DesktopAuthResult, PollingStatus, QRCodeData } from './core/phone-auth/strategies/desktop';
package/dist/esm/index.js CHANGED
@@ -1,16 +1,8 @@
1
- // Phone Authentication
2
1
  export { PhoneAuthClient } from './core/phone-auth';
3
- // Phone Auth Error Utilities
4
2
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './core/phone-auth';
5
- // Phone Auth Type Guards and Helpers
6
- export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger,
7
- // Deprecated aliases
8
- isHeadlessResult, requiresPolling, requiresUserAction } from './core/phone-auth';
9
- // Export constants for use case and strategy
3
+ export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger, isHeadlessResult, requiresPolling, requiresUserAction } from './core/phone-auth';
10
4
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
11
- // Desktop Strategy Exports
12
5
  export { DesktopHandler } from './core/phone-auth/strategies/desktop';
13
- // Adapters
14
6
  export { useClient, usePhoneAuth } from './adapters/react';
15
7
  export { useClient as useVueClient, usePhoneAuth as useVuePhoneAuth } from './adapters/vue';
16
8
  export { ClientService, PhoneAuthService } from './adapters/angular';
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { PhoneAuthClient } from './core/phone-auth';
2
2
  export type { AuthConfig as PhoneAuthConfig, PhoneAuthOptions, PhoneAuthResult, AuthError as PhoneAuthError, AuthStep as PhoneAuthStep } from './core/phone-auth';
3
3
  export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './core/phone-auth';
4
4
  export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger, isHeadlessResult, requiresPolling, requiresUserAction } from './core/phone-auth';
5
- export type { PhoneAuthCallbacks, PLMN, SessionInfo, InvokeOptions, ExecutionMode, AuthCredential, AnyExtendedResponse, DesktopExtendedResponse, LinkExtendedResponse, TS43ExtendedResponse, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, DesktopData, ClientInfo, ConsentData, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
5
+ export type { PhoneAuthCallbacks, PLMN, SessionInfo, InvokeOptions, ExecutionMode, AuthCredential, AnyExtendedResponse, DesktopExtendedResponse, LinkExtendedResponse, TS43ExtendedResponse, PrepareRequest, PrepareResponse, GetPhoneNumberRequest, GetPhoneNumberResponse, VerifyPhoneNumberRequest, VerifyPhoneNumberResponse, SecureCredentialRequest, SecureCredentialResponse, DigitalCredential, TS43Data, LinkData, DesktopData, ClientInfo, BrowserErrorType, BrowserErrorCodeType, BrowserNameType } from './core/phone-auth/types';
6
6
  export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
7
7
  export { DesktopHandler } from './core/phone-auth/strategies/desktop';
8
8
  export type { DesktopAuthOptions, DesktopAuthResult, PollingStatus, QRCodeData } from './core/phone-auth/strategies/desktop';
package/dist/index.js CHANGED
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PhoneAuthManager = exports.ClientManager = exports.PhoneAuthService = exports.ClientService = exports.useVuePhoneAuth = exports.useVueClient = exports.usePhoneAuth = exports.useClient = exports.DesktopHandler = exports.BrowserName = exports.BrowserErrorCode = exports.BrowserError = exports.AuthenticationStrategy = exports.UseCase = exports.requiresUserAction = exports.requiresPolling = exports.isHeadlessResult = exports.hasTrigger = exports.hasPollingControls = exports.getStrategy = exports.isDesktopStrategy = exports.isTS43Strategy = exports.isLinkStrategy = exports.isAuthCredential = exports.isCredential = exports.isExtendedResponse = exports.createErrorBreadcrumb = exports.serializeError = exports.isRetryableError = exports.getRetryDelay = exports.isErrorCode = exports.getUserMessage = exports.isUserError = exports.isPhoneAuthError = exports.PhoneAuthErrorCode = exports.PhoneAuthClient = void 0;
4
- // Phone Authentication
5
4
  var phone_auth_1 = require("./core/phone-auth");
6
5
  Object.defineProperty(exports, "PhoneAuthClient", { enumerable: true, get: function () { return phone_auth_1.PhoneAuthClient; } });
7
- // Phone Auth Error Utilities
8
6
  var phone_auth_2 = require("./core/phone-auth");
9
7
  Object.defineProperty(exports, "PhoneAuthErrorCode", { enumerable: true, get: function () { return phone_auth_2.PhoneAuthErrorCode; } });
10
8
  Object.defineProperty(exports, "isPhoneAuthError", { enumerable: true, get: function () { return phone_auth_2.isPhoneAuthError; } });
@@ -15,7 +13,6 @@ Object.defineProperty(exports, "getRetryDelay", { enumerable: true, get: functio
15
13
  Object.defineProperty(exports, "isRetryableError", { enumerable: true, get: function () { return phone_auth_2.isRetryableError; } });
16
14
  Object.defineProperty(exports, "serializeError", { enumerable: true, get: function () { return phone_auth_2.serializeError; } });
17
15
  Object.defineProperty(exports, "createErrorBreadcrumb", { enumerable: true, get: function () { return phone_auth_2.createErrorBreadcrumb; } });
18
- // Phone Auth Type Guards and Helpers
19
16
  var phone_auth_3 = require("./core/phone-auth");
20
17
  Object.defineProperty(exports, "isExtendedResponse", { enumerable: true, get: function () { return phone_auth_3.isExtendedResponse; } });
21
18
  Object.defineProperty(exports, "isCredential", { enumerable: true, get: function () { return phone_auth_3.isCredential; } });
@@ -26,21 +23,17 @@ Object.defineProperty(exports, "isDesktopStrategy", { enumerable: true, get: fun
26
23
  Object.defineProperty(exports, "getStrategy", { enumerable: true, get: function () { return phone_auth_3.getStrategy; } });
27
24
  Object.defineProperty(exports, "hasPollingControls", { enumerable: true, get: function () { return phone_auth_3.hasPollingControls; } });
28
25
  Object.defineProperty(exports, "hasTrigger", { enumerable: true, get: function () { return phone_auth_3.hasTrigger; } });
29
- // Deprecated aliases
30
26
  Object.defineProperty(exports, "isHeadlessResult", { enumerable: true, get: function () { return phone_auth_3.isHeadlessResult; } });
31
27
  Object.defineProperty(exports, "requiresPolling", { enumerable: true, get: function () { return phone_auth_3.requiresPolling; } });
32
28
  Object.defineProperty(exports, "requiresUserAction", { enumerable: true, get: function () { return phone_auth_3.requiresUserAction; } });
33
- // Export constants for use case and strategy
34
29
  var types_1 = require("./core/phone-auth/types");
35
30
  Object.defineProperty(exports, "UseCase", { enumerable: true, get: function () { return types_1.USE_CASE; } });
36
31
  Object.defineProperty(exports, "AuthenticationStrategy", { enumerable: true, get: function () { return types_1.AUTHENTICATION_STRATEGY; } });
37
32
  Object.defineProperty(exports, "BrowserError", { enumerable: true, get: function () { return types_1.BrowserError; } });
38
33
  Object.defineProperty(exports, "BrowserErrorCode", { enumerable: true, get: function () { return types_1.BrowserErrorCode; } });
39
34
  Object.defineProperty(exports, "BrowserName", { enumerable: true, get: function () { return types_1.BrowserName; } });
40
- // Desktop Strategy Exports
41
35
  var desktop_1 = require("./core/phone-auth/strategies/desktop");
42
36
  Object.defineProperty(exports, "DesktopHandler", { enumerable: true, get: function () { return desktop_1.DesktopHandler; } });
43
- // Adapters
44
37
  var react_1 = require("./adapters/react");
45
38
  Object.defineProperty(exports, "useClient", { enumerable: true, get: function () { return react_1.useClient; } });
46
39
  Object.defineProperty(exports, "usePhoneAuth", { enumerable: true, get: function () { return react_1.usePhoneAuth; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glideidentity/web-client-sdk",
3
- "version": "4.4.10",
3
+ "version": "5.0.1-beta.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -62,7 +62,7 @@
62
62
  "vue": "^3.0.0"
63
63
  },
64
64
  "dependencies": {
65
- "axios": "^1.7.9"
65
+ "axios": "^1.13.2"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@angular/core": "^19.0.6",