File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -710,6 +710,7 @@ export interface CallableOptions<T = any> {
710
710
cors : cors . CorsOptions ;
711
711
enforceAppCheck ?: boolean ;
712
712
consumeAppCheckToken ?: boolean ;
713
+ /* @deprecated */
713
714
authPolicy ?: ( token : AuthData | null , data : T ) => boolean | Promise < boolean > ;
714
715
/**
715
716
* Time in seconds between sending heartbeat messages to keep the connection
Original file line number Diff line number Diff line change @@ -210,6 +210,8 @@ export interface CallableOptions<T = any> extends HttpsOptions {
210
210
heartbeatSeconds ?: number | null ;
211
211
212
212
/**
213
+ * @deprecated
214
+ *
213
215
* Callback for whether a request is authorized.
214
216
*
215
217
* Designed to allow reusable auth policies to be passed as an options object. Two built-in reusable policies exist:
@@ -219,6 +221,8 @@ export interface CallableOptions<T = any> extends HttpsOptions {
219
221
}
220
222
221
223
/**
224
+ * @deprecated
225
+ *
222
226
* An auth policy that requires a user to be signed in.
223
227
*/
224
228
export const isSignedIn =
@@ -227,6 +231,8 @@ export const isSignedIn =
227
231
! ! auth ;
228
232
229
233
/**
234
+ * @deprecated
235
+ *
230
236
* An auth policy that requires a user to be both signed in and have a specific claim (optionally with a specific value)
231
237
*/
232
238
export const hasClaim =
You can’t perform that action at this time.
0 commit comments