firebase-admin.app-check package

Firebase App Check.

Functions

FunctionDescription
getAppCheck(app)Gets theAppCheck service for the default app or a given app.getAppCheck() can be called with no arguments to access the default app'sAppCheck service or asgetAppCheck(app) to access theAppCheck service associated with a specific app.

Classes

ClassDescription
AppCheckThe FirebaseAppCheck service interface.

Interfaces

InterfaceDescription
AppCheckTokenInterface representing an App Check token.
AppCheckTokenOptionsInterface representing App Check token options.
DecodedAppCheckTokenInterface representing a decoded Firebase App Check token, returned from theAppCheck.verifyToken() method.
VerifyAppCheckTokenOptionsInterface representing options for theAppCheck.verifyToken() method.
VerifyAppCheckTokenResponseInterface representing a verified App Check token response.

getAppCheck(app)

Gets theAppCheck service for the default app or a given app.

getAppCheck() can be called with no arguments to access the default app'sAppCheck service or asgetAppCheck(app) to access theAppCheck service associated with a specific app.

Signature:

exportdeclarefunctiongetAppCheck(app?:App):AppCheck;

Parameters

ParameterTypeDescription
appAppOptional app for which to return theAppCheck service. If not provided, the defaultAppCheck service is returned.

Returns:

AppCheck

The defaultAppCheck service if no app is provided, or theAppCheck service associated with the provided app.

Example 1

// Get the `AppCheck` service for the default appconstdefaultAppCheck=getAppCheck();

Example 2

// Get the `AppCheck` service for a given appconstotherAppCheck=getAppCheck(otherApp);

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-04-16 UTC.