Пример #1
0
        public async Task <IActionResult> GetRefreshToken([FromBody] GetRefresh l)
        {
            TokenResponse r = await _Secure.GetRefreshTokenAsync(l.token, l.refresh);

            if (r.IsValid)
            {
                return(Ok(new { token = r.Token, refreshToken = r.RefreshToken }));
            }
            return(Unauthorized(new { Error = r.Errors }));
        }