Example #1
0
        public async Task <TokensModel> RefreshTokenAsync(string accessToken, string refreshToken)
        {
            if (string.IsNullOrWhiteSpace(refreshToken) || string.IsNullOrWhiteSpace(accessToken))
            {
                throw new CustomApiException(HttpStatusCode.Forbidden, Constants.UNATHORIZEDERROR);
            }
            var jwtResult = await _jwtProvider.RefreshAsync(refreshToken, accessToken);

            return(jwtResult);
        }