PFUserAuthenticationDelegate

Objective-C

@protocol PFUserAuthenticationDelegate <NSObject>

Swift

protocol PFUserAuthenticationDelegate : NSObjectProtocol

Provides a general interface for delegation of third party authentication with PFUsers.

  • 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 the authData was succesfully synchronized, or NO if user should not longer be associated because of bad authData.