@glideidentity/web-client-sdk 4.4.8-beta.1 → 4.4.8-beta.3
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/adapters/react/usePhoneAuth.d.ts +1 -1
- package/dist/adapters/vue/useClient.d.ts +3 -3
- package/dist/adapters/vue/usePhoneAuth.d.ts +1 -1
- package/dist/browser/web-client-sdk.min.js +1 -1
- package/dist/core/phone-auth/api-types.d.ts +112 -27
- package/dist/core/phone-auth/client.d.ts +13 -11
- package/dist/core/phone-auth/client.js +263 -248
- package/dist/core/phone-auth/index.d.ts +1 -1
- package/dist/core/phone-auth/index.js +7 -2
- package/dist/core/phone-auth/strategies/desktop.d.ts +1 -0
- package/dist/core/phone-auth/strategies/desktop.js +64 -18
- package/dist/core/phone-auth/strategies/link.js +97 -5
- package/dist/core/phone-auth/type-guards.d.ts +61 -43
- package/dist/core/phone-auth/type-guards.js +82 -44
- package/dist/core/phone-auth/ui/modal.js +14 -1
- package/dist/core/version.js +1 -1
- package/dist/esm/adapters/react/usePhoneAuth.d.ts +1 -1
- package/dist/esm/adapters/vue/useClient.d.ts +3 -3
- package/dist/esm/adapters/vue/usePhoneAuth.d.ts +1 -1
- package/dist/esm/core/phone-auth/api-types.d.ts +112 -27
- package/dist/esm/core/phone-auth/client.d.ts +13 -11
- package/dist/esm/core/phone-auth/client.js +263 -248
- package/dist/esm/core/phone-auth/index.d.ts +1 -1
- package/dist/esm/core/phone-auth/index.js +3 -1
- package/dist/esm/core/phone-auth/strategies/desktop.d.ts +1 -0
- package/dist/esm/core/phone-auth/strategies/desktop.js +64 -18
- package/dist/esm/core/phone-auth/strategies/link.js +97 -5
- package/dist/esm/core/phone-auth/type-guards.d.ts +61 -43
- package/dist/esm/core/phone-auth/type-guards.js +76 -41
- package/dist/esm/core/phone-auth/ui/modal.js +14 -1
- package/dist/esm/core/version.js +1 -1
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +3 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -2
- package/package.json +1 -1
|
@@ -5,33 +5,34 @@
|
|
|
5
5
|
* without having to write their own type checking logic.
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
|
-
* Type guard to check if the result is
|
|
9
|
-
* or a Credential (
|
|
8
|
+
* Type guard to check if the result is an ExtendedResponse (extended mode)
|
|
9
|
+
* or a Credential (standard mode).
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```typescript
|
|
13
|
-
* const result = await invokeSecurePrompt(sdkRequest);
|
|
13
|
+
* const result = await invokeSecurePrompt(sdkRequest, { executionMode: 'extended' });
|
|
14
14
|
*
|
|
15
|
-
* if (
|
|
16
|
-
* // TypeScript knows this is
|
|
15
|
+
* if (isExtendedResponse(result)) {
|
|
16
|
+
* // TypeScript knows this is ExtendedResponse
|
|
17
17
|
* console.log(result.strategy);
|
|
18
|
-
* await result.
|
|
18
|
+
* await result.cancel();
|
|
19
19
|
* } else {
|
|
20
20
|
* // TypeScript knows this is a Credential
|
|
21
21
|
* const processedResult = await verifyPhoneNumberCredential(result, session);
|
|
22
22
|
* }
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
export function
|
|
25
|
+
export function isExtendedResponse(result) {
|
|
26
26
|
return result &&
|
|
27
27
|
typeof result === 'object' &&
|
|
28
28
|
'strategy' in result &&
|
|
29
|
-
'
|
|
30
|
-
|
|
29
|
+
'credential' in result &&
|
|
30
|
+
'cancel' in result &&
|
|
31
|
+
typeof result.cancel === 'function';
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
|
-
* Type guard to check if the result is a Credential (
|
|
34
|
-
* A credential is either a string token or an object without
|
|
34
|
+
* Type guard to check if the result is a Credential (standard mode response).
|
|
35
|
+
* A credential is either a string token or an object without ExtendedResponse properties.
|
|
35
36
|
*
|
|
36
37
|
* @example
|
|
37
38
|
* ```typescript
|
|
@@ -47,22 +48,40 @@ export function isCredential(result) {
|
|
|
47
48
|
// String credentials are valid
|
|
48
49
|
if (typeof result === 'string')
|
|
49
50
|
return true;
|
|
50
|
-
// Object credentials should NOT have
|
|
51
|
+
// Object credentials should NOT have ExtendedResponse properties
|
|
51
52
|
if (typeof result === 'object') {
|
|
52
|
-
return !('strategy' in result) && !('
|
|
53
|
+
return !('strategy' in result) && !('credential' in result) && !('cancel' in result);
|
|
53
54
|
}
|
|
54
55
|
return false;
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
|
-
* Type guard to check if
|
|
58
|
+
* Type guard to check if the result is an AuthCredential object.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```typescript
|
|
62
|
+
* if (isAuthCredential(result)) {
|
|
63
|
+
* console.log(result.credential);
|
|
64
|
+
* console.log(result.authenticated);
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export function isAuthCredential(result) {
|
|
69
|
+
return result &&
|
|
70
|
+
typeof result === 'object' &&
|
|
71
|
+
'credential' in result &&
|
|
72
|
+
'authenticated' in result &&
|
|
73
|
+
'session' in result;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Type guard to check if an ExtendedResponse is using the Link strategy.
|
|
58
77
|
* Link strategy involves opening an app link (App Clip on iOS, app on Android).
|
|
59
78
|
*
|
|
60
79
|
* @example
|
|
61
80
|
* ```typescript
|
|
62
|
-
* if (
|
|
63
|
-
* //
|
|
64
|
-
*
|
|
65
|
-
* await result.
|
|
81
|
+
* if (isExtendedResponse(result) && isLinkStrategy(result)) {
|
|
82
|
+
* // Re-trigger app opening if needed
|
|
83
|
+
* result.trigger();
|
|
84
|
+
* await result.credential;
|
|
66
85
|
* }
|
|
67
86
|
* ```
|
|
68
87
|
*/
|
|
@@ -70,14 +89,14 @@ export function isLinkStrategy(result) {
|
|
|
70
89
|
return result.strategy === 'link';
|
|
71
90
|
}
|
|
72
91
|
/**
|
|
73
|
-
* Type guard to check if
|
|
92
|
+
* Type guard to check if an ExtendedResponse is using the TS43 strategy.
|
|
74
93
|
* TS43 strategy uses the browser's Digital Credentials API.
|
|
75
94
|
*
|
|
76
95
|
* @example
|
|
77
96
|
* ```typescript
|
|
78
|
-
* if (
|
|
79
|
-
* //
|
|
80
|
-
*
|
|
97
|
+
* if (isExtendedResponse(result) && isTS43Strategy(result)) {
|
|
98
|
+
* // Re-trigger credential request if needed
|
|
99
|
+
* await result.trigger();
|
|
81
100
|
* }
|
|
82
101
|
* ```
|
|
83
102
|
*/
|
|
@@ -85,15 +104,15 @@ export function isTS43Strategy(result) {
|
|
|
85
104
|
return result.strategy === 'ts43';
|
|
86
105
|
}
|
|
87
106
|
/**
|
|
88
|
-
* Type guard to check if
|
|
107
|
+
* Type guard to check if an ExtendedResponse is using the Desktop strategy.
|
|
89
108
|
* Desktop strategy involves QR codes for cross-device authentication.
|
|
90
109
|
*
|
|
91
110
|
* @example
|
|
92
111
|
* ```typescript
|
|
93
|
-
* if (
|
|
112
|
+
* if (isExtendedResponse(result) && isDesktopStrategy(result)) {
|
|
94
113
|
* // Show custom QR code UI
|
|
95
|
-
* displayQRCode(result.
|
|
96
|
-
* await result.
|
|
114
|
+
* displayQRCode(result.qr_code_data);
|
|
115
|
+
* await result.start_polling();
|
|
97
116
|
* }
|
|
98
117
|
* ```
|
|
99
118
|
*/
|
|
@@ -102,7 +121,7 @@ export function isDesktopStrategy(result) {
|
|
|
102
121
|
}
|
|
103
122
|
/**
|
|
104
123
|
* Helper function to safely get the authentication strategy from any result.
|
|
105
|
-
* Returns undefined if the result is not
|
|
124
|
+
* Returns undefined if the result is not an ExtendedResponse.
|
|
106
125
|
*
|
|
107
126
|
* @example
|
|
108
127
|
* ```typescript
|
|
@@ -113,38 +132,54 @@ export function isDesktopStrategy(result) {
|
|
|
113
132
|
* ```
|
|
114
133
|
*/
|
|
115
134
|
export function getStrategy(result) {
|
|
116
|
-
if (
|
|
135
|
+
if (isExtendedResponse(result)) {
|
|
117
136
|
return result.strategy;
|
|
118
137
|
}
|
|
119
138
|
return undefined;
|
|
120
139
|
}
|
|
121
140
|
/**
|
|
122
|
-
* Helper function to determine if a result
|
|
123
|
-
* Link and Desktop strategies
|
|
141
|
+
* Helper function to determine if a result has polling controls.
|
|
142
|
+
* Link and Desktop strategies have polling controls in extended mode.
|
|
124
143
|
*
|
|
125
144
|
* @example
|
|
126
145
|
* ```typescript
|
|
127
|
-
* if (
|
|
128
|
-
* await result.
|
|
146
|
+
* if (hasPollingControls(result)) {
|
|
147
|
+
* await result.start_polling();
|
|
129
148
|
* }
|
|
130
149
|
* ```
|
|
131
150
|
*/
|
|
132
|
-
export function
|
|
133
|
-
if (!
|
|
151
|
+
export function hasPollingControls(result) {
|
|
152
|
+
if (!isExtendedResponse(result))
|
|
134
153
|
return false;
|
|
135
|
-
return result.strategy === 'link'
|
|
154
|
+
return (result.strategy === 'link' && 'start_polling' in result) ||
|
|
155
|
+
(result.strategy === 'desktop' && 'start_polling' in result);
|
|
136
156
|
}
|
|
137
157
|
/**
|
|
138
|
-
* Helper function to determine if a result
|
|
139
|
-
*
|
|
158
|
+
* Helper function to determine if a result has a trigger method.
|
|
159
|
+
* Link and TS43 strategies have trigger methods in extended mode.
|
|
140
160
|
*
|
|
141
161
|
* @example
|
|
142
162
|
* ```typescript
|
|
143
|
-
* if (
|
|
144
|
-
*
|
|
163
|
+
* if (hasTrigger(result)) {
|
|
164
|
+
* result.trigger();
|
|
145
165
|
* }
|
|
146
166
|
* ```
|
|
147
167
|
*/
|
|
148
|
-
export function
|
|
149
|
-
|
|
168
|
+
export function hasTrigger(result) {
|
|
169
|
+
if (!isExtendedResponse(result))
|
|
170
|
+
return false;
|
|
171
|
+
return 'trigger' in result && typeof result.trigger === 'function';
|
|
150
172
|
}
|
|
173
|
+
// Export legacy function names as deprecated aliases for backward compatibility
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Use isExtendedResponse instead
|
|
176
|
+
*/
|
|
177
|
+
export const isHeadlessResult = isExtendedResponse;
|
|
178
|
+
/**
|
|
179
|
+
* @deprecated Use hasPollingControls instead
|
|
180
|
+
*/
|
|
181
|
+
export const requiresPolling = hasPollingControls;
|
|
182
|
+
/**
|
|
183
|
+
* @deprecated This function is no longer needed as extended mode handles user actions differently
|
|
184
|
+
*/
|
|
185
|
+
export const requiresUserAction = (result) => false;
|
|
@@ -50,6 +50,11 @@ export class AuthModal {
|
|
|
50
50
|
*/
|
|
51
51
|
showQRCode(qrCodeData, statusMessage = 'Scan QR code with your phone') {
|
|
52
52
|
console.log('[Modal] showQRCode called with:', qrCodeData);
|
|
53
|
+
// If modal is already open, don't recreate it
|
|
54
|
+
if (this.isOpen) {
|
|
55
|
+
console.log('[Modal] Modal already open, skipping recreation');
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
53
58
|
// Check if it's the new dual-platform format with VALID Android QR code
|
|
54
59
|
if (typeof qrCodeData === 'object' && qrCodeData.iosQRCode) {
|
|
55
60
|
const hasValidAndroidQR = qrCodeData.androidQRCode &&
|
|
@@ -59,6 +64,8 @@ export class AuthModal {
|
|
|
59
64
|
if (hasValidAndroidQR) {
|
|
60
65
|
console.log('[Modal] Using dual-platform modal');
|
|
61
66
|
this.createDualPlatformQRModal(qrCodeData, statusMessage);
|
|
67
|
+
// Note: createDualPlatformQRModal calls show() internally
|
|
68
|
+
return;
|
|
62
69
|
}
|
|
63
70
|
else {
|
|
64
71
|
console.log('[Modal] Android QR missing/empty, using single iOS QR');
|
|
@@ -119,6 +126,8 @@ export class AuthModal {
|
|
|
119
126
|
<p class="glide-auth-status" id="glide-platform-message">Scan with your iPhone to authenticate</p>
|
|
120
127
|
</div>
|
|
121
128
|
`);
|
|
129
|
+
// IMPORTANT: Call show() to actually display the modal!
|
|
130
|
+
this.show();
|
|
122
131
|
}
|
|
123
132
|
/**
|
|
124
133
|
* Sets a callback to be called when the modal is cancelled/closed
|
|
@@ -292,7 +301,11 @@ export class AuthModal {
|
|
|
292
301
|
// Add close button handler
|
|
293
302
|
const closeBtn = this.container.querySelector('.glide-auth-close');
|
|
294
303
|
if (closeBtn) {
|
|
295
|
-
closeBtn.addEventListener('click', () =>
|
|
304
|
+
closeBtn.addEventListener('click', () => {
|
|
305
|
+
var _a;
|
|
306
|
+
(_a = this.closeCallback) === null || _a === void 0 ? void 0 : _a.call(this); // Call cancellation callback if set
|
|
307
|
+
this.close();
|
|
308
|
+
});
|
|
296
309
|
}
|
|
297
310
|
// Add backdrop click handler
|
|
298
311
|
this.backdrop.addEventListener('click', (e) => {
|
package/dist/esm/core/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// SDK version - injected at build time
|
|
2
|
-
export const SDK_VERSION = '4.4.8-beta.
|
|
2
|
+
export const SDK_VERSION = '4.4.8-beta.3';
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
export {
|
|
5
|
-
export type { PhoneAuthCallbacks, PLMN, SessionInfo,
|
|
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';
|
|
6
6
|
export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
|
|
7
7
|
export { DesktopHandler, showQRCodeModal, createQRCodeDisplay } 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
|
@@ -3,7 +3,9 @@ export { PhoneAuthClient } from './core/phone-auth';
|
|
|
3
3
|
// Phone Auth Error Utilities
|
|
4
4
|
export { PhoneAuthErrorCode, isPhoneAuthError, isUserError, getUserMessage, isErrorCode, getRetryDelay, isRetryableError, serializeError, createErrorBreadcrumb } from './core/phone-auth';
|
|
5
5
|
// Phone Auth Type Guards and Helpers
|
|
6
|
-
export {
|
|
6
|
+
export { isExtendedResponse, isCredential, isAuthCredential, isLinkStrategy, isTS43Strategy, isDesktopStrategy, getStrategy, hasPollingControls, hasTrigger,
|
|
7
|
+
// Deprecated aliases
|
|
8
|
+
isHeadlessResult, requiresPolling, requiresUserAction } from './core/phone-auth';
|
|
7
9
|
// Export constants for use case and strategy
|
|
8
10
|
export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
|
|
9
11
|
// Desktop Strategy Exports
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
export {
|
|
5
|
-
export type { PhoneAuthCallbacks, PLMN, SessionInfo,
|
|
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';
|
|
6
6
|
export { USE_CASE as UseCase, AUTHENTICATION_STRATEGY as AuthenticationStrategy, BrowserError, BrowserErrorCode, BrowserName } from './core/phone-auth/types';
|
|
7
7
|
export { DesktopHandler, showQRCodeModal, createQRCodeDisplay } 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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhoneAuthManager = exports.ClientManager = exports.PhoneAuthService = exports.ClientService = exports.useVuePhoneAuth = exports.useVueClient = exports.usePhoneAuth = exports.useClient = exports.createQRCodeDisplay = exports.showQRCodeModal = exports.DesktopHandler = exports.BrowserName = exports.BrowserErrorCode = exports.BrowserError = exports.AuthenticationStrategy = exports.UseCase = exports.requiresUserAction = exports.requiresPolling = exports.getStrategy = exports.isDesktopStrategy = exports.isTS43Strategy = exports.isLinkStrategy = exports.isCredential = exports.
|
|
3
|
+
exports.PhoneAuthManager = exports.ClientManager = exports.PhoneAuthService = exports.ClientService = exports.useVuePhoneAuth = exports.useVueClient = exports.usePhoneAuth = exports.useClient = exports.createQRCodeDisplay = exports.showQRCodeModal = 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
4
|
// Phone Authentication
|
|
5
5
|
var phone_auth_1 = require("./core/phone-auth");
|
|
6
6
|
Object.defineProperty(exports, "PhoneAuthClient", { enumerable: true, get: function () { return phone_auth_1.PhoneAuthClient; } });
|
|
@@ -17,12 +17,17 @@ Object.defineProperty(exports, "serializeError", { enumerable: true, get: functi
|
|
|
17
17
|
Object.defineProperty(exports, "createErrorBreadcrumb", { enumerable: true, get: function () { return phone_auth_2.createErrorBreadcrumb; } });
|
|
18
18
|
// Phone Auth Type Guards and Helpers
|
|
19
19
|
var phone_auth_3 = require("./core/phone-auth");
|
|
20
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "isExtendedResponse", { enumerable: true, get: function () { return phone_auth_3.isExtendedResponse; } });
|
|
21
21
|
Object.defineProperty(exports, "isCredential", { enumerable: true, get: function () { return phone_auth_3.isCredential; } });
|
|
22
|
+
Object.defineProperty(exports, "isAuthCredential", { enumerable: true, get: function () { return phone_auth_3.isAuthCredential; } });
|
|
22
23
|
Object.defineProperty(exports, "isLinkStrategy", { enumerable: true, get: function () { return phone_auth_3.isLinkStrategy; } });
|
|
23
24
|
Object.defineProperty(exports, "isTS43Strategy", { enumerable: true, get: function () { return phone_auth_3.isTS43Strategy; } });
|
|
24
25
|
Object.defineProperty(exports, "isDesktopStrategy", { enumerable: true, get: function () { return phone_auth_3.isDesktopStrategy; } });
|
|
25
26
|
Object.defineProperty(exports, "getStrategy", { enumerable: true, get: function () { return phone_auth_3.getStrategy; } });
|
|
27
|
+
Object.defineProperty(exports, "hasPollingControls", { enumerable: true, get: function () { return phone_auth_3.hasPollingControls; } });
|
|
28
|
+
Object.defineProperty(exports, "hasTrigger", { enumerable: true, get: function () { return phone_auth_3.hasTrigger; } });
|
|
29
|
+
// Deprecated aliases
|
|
30
|
+
Object.defineProperty(exports, "isHeadlessResult", { enumerable: true, get: function () { return phone_auth_3.isHeadlessResult; } });
|
|
26
31
|
Object.defineProperty(exports, "requiresPolling", { enumerable: true, get: function () { return phone_auth_3.requiresPolling; } });
|
|
27
32
|
Object.defineProperty(exports, "requiresUserAction", { enumerable: true, get: function () { return phone_auth_3.requiresUserAction; } });
|
|
28
33
|
// Export constants for use case and strategy
|