示例#1
0
        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));
        }
示例#2
0
        public async Task <AuthToken> LoginAsync(LoginRequest user)
        {
            AuthControllerClient _client = new AuthControllerClient(httpClient);

            return(await _client.LoginAsync(user));
        }