public async Task <IActionResult> DeleteRefreshToken([FromForm] RefreshTokenApiRequest request) { await _authenticationService.DeleteRefreshToken(request.RefreshToken); return(NoContent()); }
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)); }