PFUserAuthenticationDelegate
Objective-C
@protocol PFUserAuthenticationDelegate <NSObject>
Swift
protocol PFUserAuthenticationDelegate : NSObjectProtocol
Provides a general interface for delegation of third party authentication with PFUser
s.
-
Called when restoring third party authentication credentials that have been serialized, such as session keys, user id, etc.
Note
This method will be executed on a background thread.
Declaration
Objective-C
- (BOOL)restoreAuthenticationWithAuthData: (nullable NSDictionary<NSString *, NSString *> *)authData;
Swift
func restoreAuthentication(withAuthData authData: [String : String]?) -> Bool
Parameters
authData
The auth data for the provider. This value may be
nil
when unlinking an account.Return Value
YES
- if theauthData
was succesfully synchronized, orNO
if user should not longer be associated because of badauthData
.