Changeset c2e73b6 for iknow-api/Controllers/AuthController.cs
- Timestamp:
- 10/28/25 10:49:02 (11 months ago)
- Branches:
- master
- Children:
- 4708118, ff202cf
- Parents:
- e49c3ed (diff), c155364 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Boris Gjorgjievski <69085722+imbrsk@…> (10/28/25 10:49:02)
- git-committer:
- GitHub <noreply@…> (10/28/25 10:49:02)
- File:
-
- 1 edited
-
iknow-api/Controllers/AuthController.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iknow-api/Controllers/AuthController.cs
re49c3ed rc2e73b6 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-user-token")] 60 public async Task<IActionResult> VerifyToken([FromBody] VerifyRefreshTokenDto verifyRefreshToken) 61 { 62 if (await _refreshTokenService.VerifyRefreshToken(verifyRefreshToken)) 63 { return Ok(await _authService.GenerateNewJWT(verifyRefreshToken)); } 64 else 65 { return BadRequest(new { message = "No token found!" }); } 66 } 56 67 } 57 68 }
Note:
See TracChangeset
for help on using the changeset viewer.
