Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 665 Bytes

Readme.md

File metadata and controls

46 lines (28 loc) · 665 Bytes

#AKCoreUser

O AKCoreUser é responsavel pelo login e dados do usuário

  • Login
AKUserCore *user = [AKUserCore shared];

[self loginWithEmail:@"email" andPassword:@"password" success:^{
        <#code#>
    } failure:^(NSDictionary *error) {
        <#code#>
    }];
  • Logout
AKUserCore *user = [AKUserCore shared];
[user logoutWithCompletion:^{
    <#code#>
}];
  • Verificando sessão
AKUserCore *user = [AKUserCore shared];
[user isValidSession];
  • Recuperando dados do usuário logado
    AKCoreUser *user = [AKCoreUser userInfo];

    NSLog(@"Email %@", user.email);