Changeset 4e061d8 for iknow-api/Controllers
- Timestamp:
- 10/27/25 15:22:39 (11 months ago)
- Branches:
- master
- Children:
- 1e58098
- Parents:
- 5eb7847
- File:
-
- 1 edited
-
iknow-api/Controllers/AuthController.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Controllers/AuthController.cs
r5eb7847 r4e061d8 12 12 { 13 13 private readonly IAuthService _authService; 14 private readonly IRefreshTokenService _refreshTokenService; 14 15 15 public AuthController(IAuthService authService )16 public AuthController(IAuthService authService, IRefreshTokenService refreshTokenService) 16 17 { 17 18 _authService = authService; 19 _refreshTokenService = refreshTokenService; 18 20 } 19 21 … … 54 56 return Ok(new { message = "You are authorized!" }); 55 57 } 58 59 [HttpPost("verify-token")] 60 public async Task<IActionResult> verifyToken([FromBody] VerifyRefreshTokenDto VerifyRefreshTokenDto) 61 { 62 if (await _refreshTokenService.VerifyRefreshToken(VerifyRefreshTokenDto)) 63 { return Ok(); } 64 else 65 { return BadRequest("No token found"); } 66 } 56 67 } 57 68 }
Note:
See TracChangeset
for help on using the changeset viewer.
