update auth for refresh tokens and token invalidation

This commit is contained in:
voltsrage
2026-06-26 04:32:01 +08:00
parent 9777a335c5
commit abb33de5c1
20 changed files with 1183 additions and 12 deletions
@@ -1 +1,7 @@
public record LoginResponse(string Token, Guid UserId, string Username, string FullName, string Role);
public record LoginResponse(
string Token,
string RefreshToken,
Guid UserId,
string Username,
string FullName,
string Role);
@@ -0,0 +1 @@
public record LogoutRequest(string RefreshToken);
@@ -0,0 +1 @@
public record RefreshRequest(string RefreshToken);
@@ -0,0 +1 @@
public record TokenResponse(string Token, string RefreshToken);