FIRAppCheck
@interface FIRAppCheck : NSObject
A class used to manage app check tokens for a given Firebase app.
-
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Returns a default instance of
AppCheck
.Declaration
Objective-C
+ (nonnull instancetype)appCheck;
Return Value
An instance of
AppCheck
forFirebaseApp.defaultApp()
. @throw Throws an exception if the default app is not configured yet or requiredFirebaseApp
options are missing. -
Returns an instance of
AppCheck
for an application.Declaration
Objective-C
+ (nullable instancetype)appCheckWithApp:(nonnull FIRApp *)firebaseApp;
Parameters
firebaseApp
A configured
FirebaseApp
instance if exists.Return Value
An instance of
AppCheck
corresponding to the passed application. @throw Throws an exception if requiredFirebaseApp
options are missing. -
Sets the
AppCheckProviderFactory
to use to generateAppCheckDebugProvider
objects.An instance of
DeviceCheckProviderFactory
is used by default, but you can also use a customAppCheckProviderFactory
implementation or an instance ofAppCheckDebugProviderFactory
to test your app on a simulator on a local machine or a build server.NOTE: Make sure to call this method before
FirebaseApp.configure()
. If this method is called after configuring Firebase, the changes will not take effect.Declaration
Objective-C
+ (void)setAppCheckProviderFactory: (nullable id<FIRAppCheckProviderFactory>)factory;
-
If this flag is disabled then Firebase app check will not periodically auto-refresh the app check token. The default value of the flag is equal to
FirebaseApp.dataCollectionDefaultEnabled
. To disable the flag by default setFirebaseAppCheckTokenAutoRefreshEnabled
flag in the app Info.plist toNO
. Once the flag is set explicitly, the value will be persisted and used as a default value on next app launches.Declaration
Objective-C
@property (nonatomic) BOOL isTokenAutoRefreshEnabled;