aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Timeline/Controllers/UserController.cs')
-rw-r--r--Timeline/Controllers/UserController.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Controllers/UserController.cs b/Timeline/Controllers/UserController.cs
index 3b4e7b4f..147724c1 100644
--- a/Timeline/Controllers/UserController.cs
+++ b/Timeline/Controllers/UserController.cs
@@ -53,19 +53,19 @@ namespace Timeline.Controllers
[HttpPost("[action]")]
[AllowAnonymous]
- public async Task<ActionResult<TokenValidationResponse>> ValidateToken([FromBody] TokenValidationRequest request)
+ public async Task<ActionResult<VerifyTokenResponse>> VerifyToken([FromBody] VerifyTokenRequest request)
{
var result = await _userService.VerifyToken(request.Token);
if (result == null)
{
- return Ok(new TokenValidationResponse
+ return Ok(new VerifyTokenResponse
{
IsValid = false,
});
}
- return Ok(new TokenValidationResponse
+ return Ok(new VerifyTokenResponse
{
IsValid = true,
UserInfo = result