Gets the AppCheck service for the default app or a given app.getAppCheck() can be called with no arguments to access the default app's AppCheck service or as getAppCheck(app) to access the AppCheck service associated with a specific app.
Interface representing a verified App Check token response.
getAppCheck(app)
Gets the AppCheck service for the default app or a given app.
getAppCheck() can be called with no arguments to access the default app's AppCheck service or as getAppCheck(app) to access the AppCheck service associated with a specific app.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-16 UTC."],[],[],null,["# firebase-admin.app-check package\n\nFirebase App Check.\n\nFunctions\n---------\n\n| Function | Description |\n|-----------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [getAppCheck(app)](./firebase-admin.app-check.md#getappcheck_8a40afc) | Gets the [AppCheck](./firebase-admin.app-check.appcheck.md#appcheck_class) service for the default app or a given app.`getAppCheck()` can be called with no arguments to access the default app's `AppCheck` service or as `getAppCheck(app)` to access the `AppCheck` service associated with a specific app. |\n\nClasses\n-------\n\n| Class | Description |\n|-------------------------------------------------------------------|--------------------------------------------|\n| [AppCheck](./firebase-admin.app-check.appcheck.md#appcheck_class) | The Firebase `AppCheck` service interface. |\n\nInterfaces\n----------\n\n| Interface | Description |\n|--------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AppCheckToken](./firebase-admin.app-check.appchecktoken.md#appchecktoken_interface) | Interface representing an App Check token. |\n| [AppCheckTokenOptions](./firebase-admin.app-check.appchecktokenoptions.md#appchecktokenoptions_interface) | Interface representing App Check token options. |\n| [DecodedAppCheckToken](./firebase-admin.app-check.decodedappchecktoken.md#decodedappchecktoken_interface) | Interface representing a decoded Firebase App Check token, returned from the [AppCheck.verifyToken()](./firebase-admin.app-check.appcheck.md#appcheckverifytoken) method. |\n| [VerifyAppCheckTokenOptions](./firebase-admin.app-check.verifyappchecktokenoptions.md#verifyappchecktokenoptions_interface) | Interface representing options for the [AppCheck.verifyToken()](./firebase-admin.app-check.appcheck.md#appcheckverifytoken) method. |\n| [VerifyAppCheckTokenResponse](./firebase-admin.app-check.verifyappchecktokenresponse.md#verifyappchecktokenresponse_interface) | Interface representing a verified App Check token response. |\n\ngetAppCheck(app)\n----------------\n\nGets the [AppCheck](./firebase-admin.app-check.appcheck.md#appcheck_class) service for the default app or a given app.\n\n`getAppCheck()` can be called with no arguments to access the default app's `AppCheck` service or as `getAppCheck(app)` to access the `AppCheck` service associated with a specific app.\n\n**Signature:** \n\n export declare function getAppCheck(app?: App): AppCheck;\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-----------------------------------------------------------------------------------------------------------------------|\n| app | App | Optional app for which to return the `AppCheck` service. If not provided, the default `AppCheck` service is returned. |\n\n**Returns:**\n\n[AppCheck](./firebase-admin.app-check.appcheck.md#appcheck_class)\n\nThe default `AppCheck` service if no app is provided, or the `AppCheck` service associated with the provided app.\n\n### Example 1\n\n // Get the `AppCheck` service for the default app\n const defaultAppCheck = getAppCheck();\n\n### Example 2\n\n // Get the `AppCheck` service for a given app\n const otherAppCheck = getAppCheck(otherApp);"]]