Skip to content

Commit

Permalink
update AS imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoshouzi-gh committed Aug 23, 2023
1 parent b401cfd commit d2c8abe
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 13 deletions.
18 changes: 14 additions & 4 deletions FirebaseAuth/Sources/Auth/FIRAuth.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

#import "FirebaseAuth/Sources/Auth/FIRAuth_Internal.h"



#if __has_include(<UIKit/UIKit.h>)
#import <UIKit/UIKit.h>
#endif
Expand Down Expand Up @@ -84,6 +82,11 @@
#import "FirebaseAuth/Sources/Utilities/FIRAuthURLPresenter.h"
#endif

#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX || TARGET_OS_MACCATALYST
@class ASAuthorizationPlatformPublicKeyCredentialAssertion;
@class ASAuthorizationPlatformPublicKeyCredentialAssertionRequest;
#endif

NS_ASSUME_NONNULL_BEGIN

#pragma mark-- Logger Service String.
Expand Down Expand Up @@ -2371,10 +2374,17 @@ - (nullable FIRUser *)getStoredUserForAccessGroup:(NSString *_Nullable)accessGro
return user;
}

- (void)startPasskeySignInWithCompletion:(nullable void (^)(ASAuthorizationPlatformPublicKeyCredentialAssertionRequest * _Nullable __strong, NSError * _Nullable error))completion{
- (void)startPasskeySignInWithCompletion:
(nullable void (^)(
ASAuthorizationPlatformPublicKeyCredentialAssertionRequest *_Nullable request,
NSError *_Nullable error))completion {
}

- (void)finalizePasskeySignInWithPlatformCredential:(ASAuthorizationPlatformPublicKeyCredentialAssertion *)platformCredential completion:(nullable void (^)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong))completion{
- (void)finalizePasskeySignInWithPlatformCredential:
(ASAuthorizationPlatformPublicKeyCredentialAssertion *)platformCredential
completion:(nullable void (^)(
FIRAuthDataResult *_Nullable result,
NSError *_Nullable error))completion {
}

@end
Expand Down
5 changes: 1 addition & 4 deletions FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
@class FIRUser;
@protocol FIRAuthUIDelegate;
@protocol FIRFederatedAuthProvider;
#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX || TARGET_OS_MACCATALYST
@class ASAuthorizationPlatformPublicKeyCredentialAssertion;
@class ASAuthorizationPlatformPublicKeyCredentialAssertionRequest;
#endif

NS_ASSUME_NONNULL_BEGIN

/** @typedef FIRUserUpdateCallback
Expand Down
5 changes: 0 additions & 5 deletions FirebaseAuth/Sources/Public/FirebaseAuth/FIRUser.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
@class FIRUserMetadata;
@protocol FIRAuthUIDelegate;

#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX || TARGET_OS_MACCATALYST
@class ASAuthorizationPlatformPublicKeyCredentialRegistration;
@class ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest;
#endif

NS_ASSUME_NONNULL_BEGIN

/** @typedef FIRAuthTokenCallback
Expand Down
27 changes: 27 additions & 0 deletions FirebaseAuth/Sources/User/FIRUser.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@
#import "FirebaseAuth/Sources/AuthProvider/Phone/FIRPhoneAuthCredential_Internal.h"
#endif

#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX || TARGET_OS_MACCATALYST
@class ASAuthorizationPlatformPublicKeyCredentialRegistration;
@class ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest;
#endif

NS_ASSUME_NONNULL_BEGIN

/** @var kUserIDCodingKey
Expand Down Expand Up @@ -1517,6 +1522,28 @@ - (void)signOutIfTokenIsInvalidWithError:(nullable NSError *)error {
}
}

#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_OSX || TARGET_OS_MACCATALYST
- (void)finalizePasskeyEnrollmentWithPlatformCredential:
(nonnull ASAuthorizationPlatformPublicKeyCredentialRegistration *)platformCredential
completion:(nullable void (^)(
FIRAuthDataResult *_Nullable result,
NSError *_Nullable error))completion {
}

- (void)startPasskeyEnrollmentWithName:(nullable NSString *)name
completion:
(nullable void (^)(
ASAuthorizationPlatformPublicKeyCredentialRegistrationRequest
*_Nullable request,
NSError *_Nullable error))completion {
}

#endif

- (void)unenrollPasskeyWithCredentialID:(nonnull NSString *)credentialID
completion:(nullable void (^)(NSError *_Nullable error))completion {
}

@end

@implementation FIRUserProfileChangeRequest {
Expand Down

0 comments on commit d2c8abe

Please sign in to comment.