/// <inheritdoc /> public async Task UnlinkCustomAsync(ISession session, string id) { var request = new ApiAccountCustom { Id = id }; await _apiClient.UnlinkCustomAsync(session.AuthToken, request); }
/// <inheritdoc /> public async Task <ISession> AuthenticateCustomAsync(string id) { var request = new ApiAccountCustom { Id = id }; var resp = await _apiClient.AuthenticateCustomAsync(ServerKey, string.Empty, request); return(Session.Restore(resp.Token)); }
/// <inheritdoc /> public async Task <ISession> AuthenticateCustomAsync(string id, string username = null, bool create = true) { var request = new ApiAccountCustom { Id = id }; var resp = await _apiClient.AuthenticateCustomAsync(ServerKey, string.Empty, request, create, username); return(Session.Restore(resp.Token, resp.Created)); }