Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 281
Depend on AppCheckCore instead of FirebaseAppCheck#330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
8febb8e0001bc5f844db3743f1cd250dc8c6db74a0d36d7af2c129b6ae903a79146a8073683a1935c13c36f6a9c190c28b737b1eadfe567b51ce580003d5c4File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -19,17 +19,50 @@ | ||
| #if TARGET_OS_IOS && !TARGET_OS_MACCATALYST | ||
| #import <Foundation/Foundation.h> | ||
| #import "GoogleSignIn/Sources/GIDAppCheck/API/GIDAppCheckProvider.h" | ||
| NS_ASSUME_NONNULL_BEGIN | ||
| @class FIRAppCheckToken; | ||
| @protocol GACAppCheckProvider; | ||
| @protocol GACAppCheckTokenProtocol; | ||
| extern NSString *const kGIDAppCheckPreparedKey; | ||
| NS_CLASS_AVAILABLE_IOS(14) | ||
| @interface GIDAppCheck : NSObject <GIDAppCheckProvider> | ||
ch40w31 marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| @interface GIDAppCheck : NSObject | ||
| /// Creates the instance of this App Check wrapper class. | ||
| /// | ||
| /// The instance is created using `+[NSUserDefaults standardUserDefaults]` and the standard App | ||
| /// Check provider. | ||
| /// | ||
| /// @SeeAlso The App Check provider is constructed with `+[GIDAppCheck standardAppCheckProvider]`. | ||
| - (instancetype)init; | ||
| /// Creates the instance of this App Check wrapper class. | ||
| /// | ||
| /// @param appCheckProvider The instance performing the Firebase App Check token requests. If `nil`, | ||
| /// then a default implementation will be used. | ||
mdmathias marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| /// @param userDefaults The instance of `NSUserDefaults` that `GIDAppCheck` will use to store its | ||
| /// preparation status. If nil, `GIDAppCheck` will use `-[NSUserDefaults standardUserDefaults]`. | ||
| - (instancetype)initWithAppCheckProvider:(id<GACAppCheckProvider>)appCheckProvider | ||
| userDefaults:(NSUserDefaults *)userDefaults NS_DESIGNATED_INITIALIZER; | ||
| /// Prewarms the library for App Check by asking Firebase App Check to generate the App Attest key | ||
| /// id and perform the initial attestation process (if needed). | ||
| /// | ||
| /// @param completion A `nullable` callback with a `nullable` `NSError` if preparation fails. | ||
| - (void)prepareForAppCheckWithCompletion:(nullable void (^)(NSError * _Nullable error))completion; | ||
| /// Fetches the limited use Firebase token. | ||
| /// | ||
| /// @param completion A `nullable` callback with the `FIRAppCheckToken` if present, or an `NSError` | ||
| /// otherwise. | ||
| - (void)getLimitedUseTokenWithCompletion: | ||
| (nullable void (^)(id<GACAppCheckTokenProtocol> _Nullable token, | ||
| NSError * _Nullable error))completion; | ||
| - (instancetype)init NS_UNAVAILABLE; | ||
| /// Whether or not the App Attest key ID created and the attestation object has been fetched. | ||
| - (BOOL)isPrepared; | ||
| @end | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.