public async Task <AuthToken> RefreshAsync(String token, String refresh) { httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token); AuthControllerClient _client = new AuthControllerClient(httpClient); return(await _client.RefreshTokenAsync(refresh)); }
public async Task <AuthToken> LoginAsync(LoginRequest user) { AuthControllerClient _client = new AuthControllerClient(httpClient); return(await _client.LoginAsync(user)); }