Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
taeold committed Feb 14, 2025
1 parent b1f4d42 commit 6067ca9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/v2/providers/https.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ export interface HttpsOptions extends Omit<GlobalOptions, "region" | "enforceApp

/** HTTP functions can override global options and can specify multiple regions to deploy to. */
region?:
| SupportedRegion
| string
| Array<SupportedRegion | string>
| Expression<string>
| ResetValue;
| SupportedRegion
| string
| Array<SupportedRegion | string>
| Expression<string>
| ResetValue;

/** If true, allows CORS on requests to this function.
* If this is a `string` or `RegExp`, allows requests from domains that match the provided value.
Expand Down Expand Up @@ -227,8 +227,8 @@ export interface CallableOptions<T = any> extends HttpsOptions {
*/
export const isSignedIn =
() =>
(auth: AuthData | null): boolean =>
!!auth;
(auth: AuthData | null): boolean =>
!!auth;

/**
* @deprecated
Expand All @@ -237,15 +237,15 @@ export const isSignedIn =
*/
export const hasClaim =
(claim: string, value?: string) =>
(auth: AuthData | null): boolean => {
if (!auth) {
return false;
}
if (!(claim in auth.token)) {
return false;
}
return !value || auth.token[claim] === value;
};
(auth: AuthData | null): boolean => {
if (!auth) {
return false;
}
if (!(claim in auth.token)) {
return false;
}
return !value || auth.token[claim] === value;
};

/**
* Handles HTTPS requests.
Expand Down

0 comments on commit 6067ca9

Please sign in to comment.