Ejemplo n.º 1
0
        public async Task <IActionResult> DeleteRefreshToken([FromForm] RefreshTokenApiRequest request)
        {
            await _authenticationService.DeleteRefreshToken(request.RefreshToken);

            return(NoContent());
        }
Ejemplo n.º 2
0
        public async Task <ActionResult <AuthenticationTokenApiResponse> > RefreshToken([FromForm] RefreshTokenApiRequest request)
        {
            AuthenticationToken token = await _authenticationService.RefreshToken(request.RefreshToken);

            AuthenticationTokenApiResponse response = _mapper.Map <AuthenticationTokenApiResponse>(token);

            return(Created(response));
        }