Skip to content

Commit

Permalink
fix: 验证refreshToken有效时使用 issueAt 让含义更清晰
Browse files Browse the repository at this point in the history
  • Loading branch information
dragove committed Oct 29, 2024
1 parent 4f041b8 commit 028ec1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/plus/maa/backend/service/UserService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class UserService(

val userId = old.subject
val user = userRepository.findById(userId).orElseThrow()
if (old.notBefore.isBefore(user.pwdUpdateTime)) {
if (old.issuedAt.isBefore(user.pwdUpdateTime)) {
throw MaaResultException(401, "invalid token")
}

Expand Down

0 comments on commit 028ec1d

Please sign in to comment.