123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
-
-
- #import "FIRUser.h"
-
- @class FIRAuth;
- @class FIRAuthRequestConfiguration;
-
- NS_ASSUME_NONNULL_BEGIN
-
-
- typedef void(^FIRRetrieveUserCallback)(FIRUser *_Nullable user, NSError *_Nullable error);
-
-
- typedef void (^FIRVerifyBeforeUpdateEmailCallback)(NSError *_Nullable error);
-
- @interface FIRUser () <NSSecureCoding>
-
-
- @property(nonatomic, copy, readonly) NSString *rawAccessToken;
-
-
- @property(nonatomic, weak) FIRAuth *auth;
-
-
- @property(nonatomic, strong) FIRAuthRequestConfiguration *requestConfiguration;
-
-
- @property(nonatomic, copy, readonly) NSDate *accessTokenExpirationDate;
-
-
- + (void)retrieveUserWithAuth:(FIRAuth *)auth
- accessToken:(nullable NSString *)accessToken
- accessTokenExpirationDate:(nullable NSDate *)accessTokenExpirationDate
- refreshToken:(nullable NSString *)refreshToken
- anonymous:(BOOL)anonymous
- callback:(FIRRetrieveUserCallback)callback;
-
-
- - (void)internalGetTokenForcingRefresh:(BOOL)forceRefresh
- callback:(nonnull FIRAuthTokenCallback)callback;
-
-
-
- - (void)internalVerifyBeforeUpdateEmailWithNewEmail:(NSString *)newEmail
- actionCodeSettings:(nullable FIRActionCodeSettings *)actionCodeSettings
- completion:(FIRVerifyBeforeUpdateEmailCallback)completion;
-
-
- @end
-
- NS_ASSUME_NONNULL_END
|