Skip to content

Commit cce55b5

Browse files
authored
Correctly deprecate auth policy (#1675)
* Mark authpolicy as internal. * Add @beta tag * Remove beta tag. * Add deprecation note. * Formatting.
1 parent 33a7ec0 commit cce55b5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/v2/providers/https.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ export interface CallableOptions<T = any> extends HttpsOptions {
210210
heartbeatSeconds?: number | null;
211211

212212
/**
213-
* @deprecated
214-
*
215-
* Callback for whether a request is authorized.
213+
* (Deprecated) Callback for whether a request is authorized.
216214
*
217215
* Designed to allow reusable auth policies to be passed as an options object. Two built-in reusable policies exist:
218216
* isSignedIn and hasClaim.
217+
*
218+
* @deprecated
219219
*/
220220
authPolicy?: (auth: AuthData | null, data: T) => boolean | Promise<boolean>;
221221
}

0 commit comments

Comments
 (0)