appCheck
interface
The Firebase AppCheck service is available for the default app or a given app.
Example 1
Get the appCheck instance for the default app:
const appCheckForDefaultApp = firebase.appCheck();
Example 2
Get the appCheck instance for a secondary app: ˚
const otherApp = firebase.app('otherApp');
const appCheckForOtherApp = firebase.appCheck(otherApp);
Properties
Methods
activate
</>Activate AppCheck
activate(siteKeyOrProvider: string | AppCheckProvider, isTokenAutoRefreshEnabled?: undefined | false | true): Promise<void>;
getToken
</>Requests Firebase App Check token. This method should only be used if you need to authorize requests to a non-Firebase backend. Requests to Firebase backend are authorized automatically if configured.
getToken(forceRefresh?: undefined | false | true): Promise<AppCheckTokenResult>;
setTokenAutoRefreshEnabled
</>setTokenAutoRefreshEnabled(isTokenAutoRefreshEnabled: boolean): void;