RLMASLoginDelegate

Objective-C

@protocol RLMASLoginDelegate

Swift

protocol RLMASLoginDelegate

Use this delegate to be provided a callback once authentication has succeed or failed

  • Callback that is invoked should the authentication fail.

    Declaration

    Objective-C

    - (void)authenticationDidCompleteWithError:(nonnull NSError *)error;

    Swift

    func authenticationDidComplete(error: Error)

    Parameters

    error

    An error describing the authentication failure.

  • Callback that is invoked should the authentication succeed.

    Declaration

    Objective-C

    - (void)authenticationDidCompleteWithUser:(nonnull RLMUser *)user;

    Swift

    func authenticationDidComplete(user: RLMUser)

    Parameters

    user

    The newly authenticated user.