mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
fix: IsTokenExpired function adjustment (#475)
* fix: IsTokenExpired function adjustment Signed-off-by: Steve0x2a <stevesough@gmail.com> * fix: tokenExpired err Signed-off-by: Steve0x2a <stevesough@gmail.com>
This commit is contained in:
@ -40,7 +40,7 @@ func AutoSigninFilter(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if !util.IsTokenExpired(token.CreatedTime, token.ExpiresIn) {
|
||||
if util.IsTokenExpired(token.CreatedTime, token.ExpiresIn) {
|
||||
responseError(ctx, "Access token has expired")
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user