react-native-firebase / app-check/lib/modular
app-check/lib/modular
ReactNativeFirebaseAppCheckProvider
Defined in: app-check/lib/ReactNativeFirebaseAppCheckProvider.ts:7
Constructor
new ReactNativeFirebaseAppCheckProvider():
ReactNativeFirebaseAppCheckProvider
Defined in: app-check/lib/ReactNativeFirebaseAppCheckProvider.ts:10
providerOptions?
optionalproviderOptions:ReactNativeFirebaseAppCheckProviderOptionsMap
Defined in: app-check/lib/ReactNativeFirebaseAppCheckProvider.ts:8
configure()
configure(
options):void
Defined in: app-check/lib/ReactNativeFirebaseAppCheckProvider.ts:12
getToken()
getToken():
Promise<AppCheckToken>
Defined in: app-check/lib/ReactNativeFirebaseAppCheckProvider.ts:16
Returns an AppCheck token.
getLimitedUseToken()
getLimitedUseToken(
appCheckInstance):Promise<AppCheckTokenResult>
Defined in: app-check/lib/modular.ts:80
Get a limited-use (consumable) App Check token. For use with server calls to firebase functions or custom backends using the firebase admin SDK.
getToken()
getToken(
appCheckInstance,forceRefresh?):Promise<AppCheckTokenResult>
Defined in: app-check/lib/modular.ts:62
Get the current App Check token. Attaches to the most recent in-flight request if one is present. Returns null if no token is present and no token requests are in-flight.
initializeAppCheck()
initializeAppCheck(
app?,options?):Promise<AppCheck>
Defined in: app-check/lib/modular.ts:37
Activate App Check for the given app. Can be called only once per app.
Call Signature
onTokenChanged(
appCheckInstance,listener):Unsubscribe
Defined in: app-check/lib/modular.ts:115
Registers a listener to changes in the token state. There can be more than one listener registered at the same time for one or more App Check instances. The listeners call back on the UI thread whenever the current token associated with this App Check instance changes.
Call Signature
onTokenChanged(
appCheckInstance,onNext,onError?,onCompletion?):Unsubscribe
Defined in: app-check/lib/modular.ts:132
Registers a listener to changes in the token state. There can be more than one listener registered at the same time for one or more App Check instances. The listeners call back on the UI thread whenever the current token associated with this App Check instance changes.
setTokenAutoRefreshEnabled()
setTokenAutoRefreshEnabled(
appCheckInstance,isAutoRefreshEnabled):void
Defined in: app-check/lib/modular.ts:93
Set whether App Check will automatically refresh tokens as needed.
