@firebase/app-check 0.5.8 → 0.5.9-canary.8e952e2ee
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/CHANGELOG.md +11 -0
- package/dist/app-check-public.d.ts +224 -224
- package/dist/app-check.d.ts +266 -266
- package/dist/esm/index.esm.js +18 -16
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/index.esm2017.js +6 -4
- package/dist/esm/index.esm2017.js.map +1 -1
- package/dist/index.cjs.js +18 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/src/tsdoc-metadata.json +11 -11
- package/package.json +11 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @firebase/app-check
|
|
2
2
|
|
|
3
|
+
## 0.5.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2cd1cc76f`](https://github.com/firebase/firebase-js-sdk/commit/2cd1cc76f2a308135cd60f424fe09084a34b5cb5) [#6307](https://github.com/firebase/firebase-js-sdk/pull/6307) (fixes [#6300](https://github.com/firebase/firebase-js-sdk/issues/6300)) - fix: add type declarations to exports field
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`2cd1cc76f`](https://github.com/firebase/firebase-js-sdk/commit/2cd1cc76f2a308135cd60f424fe09084a34b5cb5)]:
|
|
10
|
+
- @firebase/component@0.5.15
|
|
11
|
+
- @firebase/logger@0.3.3
|
|
12
|
+
- @firebase/util@1.6.1
|
|
13
|
+
|
|
3
14
|
## 0.5.8
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1,224 +1,224 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Firebase App Check
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import { FirebaseApp } from '@firebase/app';
|
|
8
|
-
import { PartialObserver } from '@firebase/util';
|
|
9
|
-
import { Unsubscribe } from '@firebase/util';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The Firebase App Check service interface.
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
export declare interface AppCheck {
|
|
17
|
-
/**
|
|
18
|
-
* The {@link @firebase/app#FirebaseApp} this `AppCheck` instance is associated with.
|
|
19
|
-
*/
|
|
20
|
-
app: FirebaseApp;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Excluded from this release type: _AppCheckComponentName */
|
|
24
|
-
|
|
25
|
-
/* Excluded from this release type: _AppCheckInternalComponentName */
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Options for App Check initialization.
|
|
29
|
-
* @public
|
|
30
|
-
*/
|
|
31
|
-
export declare interface AppCheckOptions {
|
|
32
|
-
/**
|
|
33
|
-
* A reCAPTCHA V3 provider, reCAPTCHA Enterprise provider, or custom provider.
|
|
34
|
-
*/
|
|
35
|
-
provider: CustomProvider | ReCaptchaV3Provider | ReCaptchaEnterpriseProvider;
|
|
36
|
-
/**
|
|
37
|
-
* If set to true, enables automatic background refresh of App Check token.
|
|
38
|
-
*/
|
|
39
|
-
isTokenAutoRefreshEnabled?: boolean;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare interface AppCheckProvider {
|
|
43
|
-
/* Excluded from this release type: getToken */
|
|
44
|
-
/* Excluded from this release type: initialize */
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The token returned from an App Check provider.
|
|
49
|
-
* @public
|
|
50
|
-
*/
|
|
51
|
-
export declare interface AppCheckToken {
|
|
52
|
-
readonly token: string;
|
|
53
|
-
/**
|
|
54
|
-
* The local timestamp after which the token will expire.
|
|
55
|
-
*/
|
|
56
|
-
readonly expireTimeMillis: number;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
declare interface AppCheckTokenInternal extends AppCheckToken {
|
|
60
|
-
issuedAtTimeMillis: number;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* A listener that is called whenever the App Check token changes.
|
|
65
|
-
* @public
|
|
66
|
-
*/
|
|
67
|
-
export declare type AppCheckTokenListener = (token: AppCheckTokenResult) => void;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Result returned by `getToken()`.
|
|
71
|
-
* @public
|
|
72
|
-
*/
|
|
73
|
-
export declare interface AppCheckTokenResult {
|
|
74
|
-
/**
|
|
75
|
-
* The token string in JWT format.
|
|
76
|
-
*/
|
|
77
|
-
readonly token: string;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Custom provider class.
|
|
82
|
-
* @public
|
|
83
|
-
*/
|
|
84
|
-
export declare class CustomProvider implements AppCheckProvider {
|
|
85
|
-
private _customProviderOptions;
|
|
86
|
-
private _app?;
|
|
87
|
-
constructor(_customProviderOptions: CustomProviderOptions);
|
|
88
|
-
/* Excluded from this release type: getToken */
|
|
89
|
-
/* Excluded from this release type: initialize */
|
|
90
|
-
/* Excluded from this release type: isEqual */
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Options when creating a {@link CustomProvider}.
|
|
95
|
-
* @public
|
|
96
|
-
*/
|
|
97
|
-
export declare interface CustomProviderOptions {
|
|
98
|
-
/**
|
|
99
|
-
* Function to get an App Check token through a custom provider
|
|
100
|
-
* service.
|
|
101
|
-
*/
|
|
102
|
-
getToken: () => Promise<AppCheckToken>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Get the current App Check token. Attaches to the most recent
|
|
107
|
-
* in-flight request if one is present. Returns null if no token
|
|
108
|
-
* is present and no token requests are in-flight.
|
|
109
|
-
*
|
|
110
|
-
* @param appCheckInstance - The App Check service instance.
|
|
111
|
-
* @param forceRefresh - If true, will always try to fetch a fresh token.
|
|
112
|
-
* If false, will use a cached token if found in storage.
|
|
113
|
-
* @public
|
|
114
|
-
*/
|
|
115
|
-
export declare function getToken(appCheckInstance: AppCheck, forceRefresh?: boolean): Promise<AppCheckTokenResult>;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Activate App Check for the given app. Can be called only once per app.
|
|
119
|
-
* @param app - the {@link @firebase/app#FirebaseApp} to activate App Check for
|
|
120
|
-
* @param options - App Check initialization options
|
|
121
|
-
* @public
|
|
122
|
-
*/
|
|
123
|
-
export declare function initializeAppCheck(app: FirebaseApp | undefined, options: AppCheckOptions): AppCheck;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Registers a listener to changes in the token state. There can be more
|
|
127
|
-
* than one listener registered at the same time for one or more
|
|
128
|
-
* App Check instances. The listeners call back on the UI thread whenever
|
|
129
|
-
* the current token associated with this App Check instance changes.
|
|
130
|
-
*
|
|
131
|
-
* @param appCheckInstance - The App Check service instance.
|
|
132
|
-
* @param observer - An object with `next`, `error`, and `complete`
|
|
133
|
-
* properties. `next` is called with an
|
|
134
|
-
* {@link AppCheckTokenResult}
|
|
135
|
-
* whenever the token changes. `error` is optional and is called if an
|
|
136
|
-
* error is thrown by the listener (the `next` function). `complete`
|
|
137
|
-
* is unused, as the token stream is unending.
|
|
138
|
-
*
|
|
139
|
-
* @returns A function that unsubscribes this listener.
|
|
140
|
-
* @public
|
|
141
|
-
*/
|
|
142
|
-
export declare function onTokenChanged(appCheckInstance: AppCheck, observer: PartialObserver<AppCheckTokenResult>): Unsubscribe;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Registers a listener to changes in the token state. There can be more
|
|
146
|
-
* than one listener registered at the same time for one or more
|
|
147
|
-
* App Check instances. The listeners call back on the UI thread whenever
|
|
148
|
-
* the current token associated with this App Check instance changes.
|
|
149
|
-
*
|
|
150
|
-
* @param appCheckInstance - The App Check service instance.
|
|
151
|
-
* @param onNext - When the token changes, this function is called with aa
|
|
152
|
-
* {@link AppCheckTokenResult}.
|
|
153
|
-
* @param onError - Optional. Called if there is an error thrown by the
|
|
154
|
-
* listener (the `onNext` function).
|
|
155
|
-
* @param onCompletion - Currently unused, as the token stream is unending.
|
|
156
|
-
* @returns A function that unsubscribes this listener.
|
|
157
|
-
* @public
|
|
158
|
-
*/
|
|
159
|
-
export declare function onTokenChanged(appCheckInstance: AppCheck, onNext: (tokenResult: AppCheckTokenResult) => void, onError?: (error: Error) => void, onCompletion?: () => void): Unsubscribe;
|
|
160
|
-
export { PartialObserver }
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* App Check provider that can obtain a reCAPTCHA Enterprise token and exchange it
|
|
164
|
-
* for an App Check token.
|
|
165
|
-
*
|
|
166
|
-
* @public
|
|
167
|
-
*/
|
|
168
|
-
export declare class ReCaptchaEnterpriseProvider implements AppCheckProvider {
|
|
169
|
-
private _siteKey;
|
|
170
|
-
private _app?;
|
|
171
|
-
private _heartbeatServiceProvider?;
|
|
172
|
-
/**
|
|
173
|
-
* Throttle requests on certain error codes to prevent too many retries
|
|
174
|
-
* in a short time.
|
|
175
|
-
*/
|
|
176
|
-
private _throttleData;
|
|
177
|
-
/**
|
|
178
|
-
* Create a ReCaptchaEnterpriseProvider instance.
|
|
179
|
-
* @param siteKey - reCAPTCHA Enterprise score-based site key.
|
|
180
|
-
*/
|
|
181
|
-
constructor(_siteKey: string);
|
|
182
|
-
/* Excluded from this release type: getToken */
|
|
183
|
-
/* Excluded from this release type: initialize */
|
|
184
|
-
/* Excluded from this release type: isEqual */
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* App Check provider that can obtain a reCAPTCHA V3 token and exchange it
|
|
189
|
-
* for an App Check token.
|
|
190
|
-
*
|
|
191
|
-
* @public
|
|
192
|
-
*/
|
|
193
|
-
export declare class ReCaptchaV3Provider implements AppCheckProvider {
|
|
194
|
-
private _siteKey;
|
|
195
|
-
private _app?;
|
|
196
|
-
private _heartbeatServiceProvider?;
|
|
197
|
-
/**
|
|
198
|
-
* Throttle requests on certain error codes to prevent too many retries
|
|
199
|
-
* in a short time.
|
|
200
|
-
*/
|
|
201
|
-
private _throttleData;
|
|
202
|
-
/**
|
|
203
|
-
* Create a ReCaptchaV3Provider instance.
|
|
204
|
-
* @param siteKey - ReCAPTCHA V3 siteKey.
|
|
205
|
-
*/
|
|
206
|
-
constructor(_siteKey: string);
|
|
207
|
-
/* Excluded from this release type: getToken */
|
|
208
|
-
/* Excluded from this release type: initialize */
|
|
209
|
-
/* Excluded from this release type: isEqual */
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* Set whether App Check will automatically refresh tokens as needed.
|
|
214
|
-
*
|
|
215
|
-
* @param appCheckInstance - The App Check service instance.
|
|
216
|
-
* @param isTokenAutoRefreshEnabled - If true, the SDK automatically
|
|
217
|
-
* refreshes App Check tokens as needed. This overrides any value set
|
|
218
|
-
* during `initializeAppCheck()`.
|
|
219
|
-
* @public
|
|
220
|
-
*/
|
|
221
|
-
export declare function setTokenAutoRefreshEnabled(appCheckInstance: AppCheck, isTokenAutoRefreshEnabled: boolean): void;
|
|
222
|
-
export { Unsubscribe }
|
|
223
|
-
|
|
224
|
-
export { }
|
|
1
|
+
/**
|
|
2
|
+
* Firebase App Check
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { FirebaseApp } from '@firebase/app';
|
|
8
|
+
import { PartialObserver } from '@firebase/util';
|
|
9
|
+
import { Unsubscribe } from '@firebase/util';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The Firebase App Check service interface.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export declare interface AppCheck {
|
|
17
|
+
/**
|
|
18
|
+
* The {@link @firebase/app#FirebaseApp} this `AppCheck` instance is associated with.
|
|
19
|
+
*/
|
|
20
|
+
app: FirebaseApp;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Excluded from this release type: _AppCheckComponentName */
|
|
24
|
+
|
|
25
|
+
/* Excluded from this release type: _AppCheckInternalComponentName */
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Options for App Check initialization.
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export declare interface AppCheckOptions {
|
|
32
|
+
/**
|
|
33
|
+
* A reCAPTCHA V3 provider, reCAPTCHA Enterprise provider, or custom provider.
|
|
34
|
+
*/
|
|
35
|
+
provider: CustomProvider | ReCaptchaV3Provider | ReCaptchaEnterpriseProvider;
|
|
36
|
+
/**
|
|
37
|
+
* If set to true, enables automatic background refresh of App Check token.
|
|
38
|
+
*/
|
|
39
|
+
isTokenAutoRefreshEnabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare interface AppCheckProvider {
|
|
43
|
+
/* Excluded from this release type: getToken */
|
|
44
|
+
/* Excluded from this release type: initialize */
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The token returned from an App Check provider.
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export declare interface AppCheckToken {
|
|
52
|
+
readonly token: string;
|
|
53
|
+
/**
|
|
54
|
+
* The local timestamp after which the token will expire.
|
|
55
|
+
*/
|
|
56
|
+
readonly expireTimeMillis: number;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare interface AppCheckTokenInternal extends AppCheckToken {
|
|
60
|
+
issuedAtTimeMillis: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A listener that is called whenever the App Check token changes.
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
export declare type AppCheckTokenListener = (token: AppCheckTokenResult) => void;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Result returned by `getToken()`.
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
export declare interface AppCheckTokenResult {
|
|
74
|
+
/**
|
|
75
|
+
* The token string in JWT format.
|
|
76
|
+
*/
|
|
77
|
+
readonly token: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Custom provider class.
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
export declare class CustomProvider implements AppCheckProvider {
|
|
85
|
+
private _customProviderOptions;
|
|
86
|
+
private _app?;
|
|
87
|
+
constructor(_customProviderOptions: CustomProviderOptions);
|
|
88
|
+
/* Excluded from this release type: getToken */
|
|
89
|
+
/* Excluded from this release type: initialize */
|
|
90
|
+
/* Excluded from this release type: isEqual */
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Options when creating a {@link CustomProvider}.
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
export declare interface CustomProviderOptions {
|
|
98
|
+
/**
|
|
99
|
+
* Function to get an App Check token through a custom provider
|
|
100
|
+
* service.
|
|
101
|
+
*/
|
|
102
|
+
getToken: () => Promise<AppCheckToken>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Get the current App Check token. Attaches to the most recent
|
|
107
|
+
* in-flight request if one is present. Returns null if no token
|
|
108
|
+
* is present and no token requests are in-flight.
|
|
109
|
+
*
|
|
110
|
+
* @param appCheckInstance - The App Check service instance.
|
|
111
|
+
* @param forceRefresh - If true, will always try to fetch a fresh token.
|
|
112
|
+
* If false, will use a cached token if found in storage.
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export declare function getToken(appCheckInstance: AppCheck, forceRefresh?: boolean): Promise<AppCheckTokenResult>;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Activate App Check for the given app. Can be called only once per app.
|
|
119
|
+
* @param app - the {@link @firebase/app#FirebaseApp} to activate App Check for
|
|
120
|
+
* @param options - App Check initialization options
|
|
121
|
+
* @public
|
|
122
|
+
*/
|
|
123
|
+
export declare function initializeAppCheck(app: FirebaseApp | undefined, options: AppCheckOptions): AppCheck;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Registers a listener to changes in the token state. There can be more
|
|
127
|
+
* than one listener registered at the same time for one or more
|
|
128
|
+
* App Check instances. The listeners call back on the UI thread whenever
|
|
129
|
+
* the current token associated with this App Check instance changes.
|
|
130
|
+
*
|
|
131
|
+
* @param appCheckInstance - The App Check service instance.
|
|
132
|
+
* @param observer - An object with `next`, `error`, and `complete`
|
|
133
|
+
* properties. `next` is called with an
|
|
134
|
+
* {@link AppCheckTokenResult}
|
|
135
|
+
* whenever the token changes. `error` is optional and is called if an
|
|
136
|
+
* error is thrown by the listener (the `next` function). `complete`
|
|
137
|
+
* is unused, as the token stream is unending.
|
|
138
|
+
*
|
|
139
|
+
* @returns A function that unsubscribes this listener.
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
export declare function onTokenChanged(appCheckInstance: AppCheck, observer: PartialObserver<AppCheckTokenResult>): Unsubscribe;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Registers a listener to changes in the token state. There can be more
|
|
146
|
+
* than one listener registered at the same time for one or more
|
|
147
|
+
* App Check instances. The listeners call back on the UI thread whenever
|
|
148
|
+
* the current token associated with this App Check instance changes.
|
|
149
|
+
*
|
|
150
|
+
* @param appCheckInstance - The App Check service instance.
|
|
151
|
+
* @param onNext - When the token changes, this function is called with aa
|
|
152
|
+
* {@link AppCheckTokenResult}.
|
|
153
|
+
* @param onError - Optional. Called if there is an error thrown by the
|
|
154
|
+
* listener (the `onNext` function).
|
|
155
|
+
* @param onCompletion - Currently unused, as the token stream is unending.
|
|
156
|
+
* @returns A function that unsubscribes this listener.
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
export declare function onTokenChanged(appCheckInstance: AppCheck, onNext: (tokenResult: AppCheckTokenResult) => void, onError?: (error: Error) => void, onCompletion?: () => void): Unsubscribe;
|
|
160
|
+
export { PartialObserver }
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* App Check provider that can obtain a reCAPTCHA Enterprise token and exchange it
|
|
164
|
+
* for an App Check token.
|
|
165
|
+
*
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
168
|
+
export declare class ReCaptchaEnterpriseProvider implements AppCheckProvider {
|
|
169
|
+
private _siteKey;
|
|
170
|
+
private _app?;
|
|
171
|
+
private _heartbeatServiceProvider?;
|
|
172
|
+
/**
|
|
173
|
+
* Throttle requests on certain error codes to prevent too many retries
|
|
174
|
+
* in a short time.
|
|
175
|
+
*/
|
|
176
|
+
private _throttleData;
|
|
177
|
+
/**
|
|
178
|
+
* Create a ReCaptchaEnterpriseProvider instance.
|
|
179
|
+
* @param siteKey - reCAPTCHA Enterprise score-based site key.
|
|
180
|
+
*/
|
|
181
|
+
constructor(_siteKey: string);
|
|
182
|
+
/* Excluded from this release type: getToken */
|
|
183
|
+
/* Excluded from this release type: initialize */
|
|
184
|
+
/* Excluded from this release type: isEqual */
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* App Check provider that can obtain a reCAPTCHA V3 token and exchange it
|
|
189
|
+
* for an App Check token.
|
|
190
|
+
*
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
193
|
+
export declare class ReCaptchaV3Provider implements AppCheckProvider {
|
|
194
|
+
private _siteKey;
|
|
195
|
+
private _app?;
|
|
196
|
+
private _heartbeatServiceProvider?;
|
|
197
|
+
/**
|
|
198
|
+
* Throttle requests on certain error codes to prevent too many retries
|
|
199
|
+
* in a short time.
|
|
200
|
+
*/
|
|
201
|
+
private _throttleData;
|
|
202
|
+
/**
|
|
203
|
+
* Create a ReCaptchaV3Provider instance.
|
|
204
|
+
* @param siteKey - ReCAPTCHA V3 siteKey.
|
|
205
|
+
*/
|
|
206
|
+
constructor(_siteKey: string);
|
|
207
|
+
/* Excluded from this release type: getToken */
|
|
208
|
+
/* Excluded from this release type: initialize */
|
|
209
|
+
/* Excluded from this release type: isEqual */
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Set whether App Check will automatically refresh tokens as needed.
|
|
214
|
+
*
|
|
215
|
+
* @param appCheckInstance - The App Check service instance.
|
|
216
|
+
* @param isTokenAutoRefreshEnabled - If true, the SDK automatically
|
|
217
|
+
* refreshes App Check tokens as needed. This overrides any value set
|
|
218
|
+
* during `initializeAppCheck()`.
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
export declare function setTokenAutoRefreshEnabled(appCheckInstance: AppCheck, isTokenAutoRefreshEnabled: boolean): void;
|
|
222
|
+
export { Unsubscribe }
|
|
223
|
+
|
|
224
|
+
export { }
|