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:
Steve0x2a 2022-02-07 22:20:36 +08:00 committed by GitHub
parent 63161d6135
commit 256b433e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ func AutoSigninFilter(ctx *context.Context) {
return return
} }
if !util.IsTokenExpired(token.CreatedTime, token.ExpiresIn) { if util.IsTokenExpired(token.CreatedTime, token.ExpiresIn) {
responseError(ctx, "Access token has expired") responseError(ctx, "Access token has expired")
return return
} }