Exemple #1
0
        public async Task <IActionResult> RefreshTokenAsync()
        {
            try
            {
                var token = await _jwtHandler.RefreshTokenAsync(User);

                return(Json(token));
            }
            catch (Exception e)
            {
                _logger.LogError($"Returning exception: {e.Message}");
                return(Json(new ExceptionDto
                {
                    Error = e.Message
                }));
            }
        }