public async Task <IActionResult> Logout([FromBody] RefreshTokenViewModel model)
        {
            string refreshToken = model.RefreshToken;

            (Token token, User user) = await jwtTokenService.FindUserAndTokenByRefreshTokenAsync(refreshToken);

            if (token == null)
            {
                return(Unauthorized());
            }

            await jwtTokenService.RevokeUserBearerTokensAsync(user.Id, refreshToken);

            return(Ok(new { message = "You loged out successfully." }));
        }