CredentialsExchanging
Objective-C
@protocol CredentialsExchanging
-(void) exchangeEmail:(NSString *)email
password:(NSString *)password
completion:(CredentialsExchangeCompletionBlock)completion;
-(void) validatedTokenWithForcedRefresh:(BOOL)forceRefresh
completion:(CredentialsExchangeCompletionBlock)completion;
-(void) signOut;
-(nullable NSString *) username;
-(nullable NSString *) password;
-(nullable NSString *) jwtToken; // For migration to new credentials storage; may not be valid
@end
Swift
protocol CredentialsExchanging
Undocumented
-
Undocumented
Declaration
Objective-C
-(void) exchangeEmail:(NSString *)email password:(NSString *)password completion:(CredentialsExchangeCompletionBlock)completion;
Swift
func exchangeEmail(_ email: String, password: String) async -> (CredentialsExchangeResult, String?)
-
Undocumented
Declaration
Objective-C
-(void) validatedTokenWithForcedRefresh:(BOOL)forceRefresh completion:(CredentialsExchangeCompletionBlock)completion;
Swift
func validatedToken(withForcedRefresh forceRefresh: Bool) async -> (CredentialsExchangeResult, String?)
-
Undocumented
Declaration
Objective-C
-(void) signOut;
Swift
func signOut()
-
Undocumented
Declaration
Objective-C
-(nullable NSString *) username;
Swift
func username() -> String?
-
Undocumented
Declaration
Objective-C
-(nullable NSString *) password;
Swift
func password() -> String?
-
Undocumented
Declaration
Objective-C
-(nullable NSString *) jwtToken;
Swift
func jwtToken() -> String?