RLMASLoginDelegate

Objective-C

@protocol RLMASLoginDelegate

Swift

protocol RLMASLoginDelegate

Use esse delegado para receber uma chamada de resposta assim que a autenticação for bem-sucedida ou falhar

  • Chamada de resposta que é invocada caso a autenticação falhe.

    Declaração

    Objective-C

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

    Swift

    func authenticationDidComplete(error: any Error)

    Parâmetros

    error

    Um erro descrevendo a falha de autenticação.

  • Chamada de resposta que é invocada caso a autenticação seja bem-sucedida.

    Declaração

    Objective-C

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

    Swift

    func authenticationDidComplete(user: RLMUser)

    Parâmetros

    user

    O usuário recém-autenticado.