public async Task <IActionResult> Refresh([FromBody] RefreshTokenRequestDto request) { return(Ok(await _mediator.Send(new TokenRefreshCommand(request.RefreshToken)))); }
public async Task <IActionResult> Refresh([FromBody] RefreshTokenRequestDto request) { var authResult = await AccountService.RefreshTokenAsync(request.Token, request.RefreshToken); return(GetResponseFrom(authResult)); }