public async Task <IActionResult> Refresh(UserRefreshOptions refresh)
 {
     try
     {
         return(Ok(await _authorizationService.RefreshAsync(refresh)));
     }
     catch (AccessException ex)
     {
         return(new ContentResult
         {
             StatusCode = 403,
             Content = ex.Message,
             ContentType = "application/json"
         });
     }
 }
Example #2
0
 public async Task <TokenResponse> RefreshAsync(UserRefreshOptions options)
 {
     return(await RequestAzureEndpoint(new FormUrlEncodedContent(GetKeyValuePairOptions(options))));
 }