Exemplo n.º 1
0
 /// <inheritdoc />
 public async Task UnlinkEmailAsync(ISession session, string email, string password)
 {
     var request = new ApiAccountEmail {
         Email = email, Password = password
     };
     await _apiClient.UnlinkEmailAsync(session.AuthToken, request);
 }
Exemplo n.º 2
0
        /// <inheritdoc />
        public async Task <ISession> AuthenticateEmailAsync(string email, string password)
        {
            var request = new ApiAccountEmail {
                Email = email, Password = password
            };
            var resp = await _apiClient.AuthenticateEmailAsync(ServerKey, string.Empty, request);

            return(Session.Restore(resp.Token));
        }
Exemplo n.º 3
0
        /// <inheritdoc />
        public async Task <ISession> AuthenticateEmailAsync(string email, string password, string username = null,
                                                            bool create = true)
        {
            var request = new ApiAccountEmail {
                Email = email, Password = password
            };
            var resp = await _apiClient.AuthenticateEmailAsync(ServerKey, string.Empty, request, create, username);

            return(Session.Restore(resp.Token, resp.Created));
        }