We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 如果设定了存储,则将未过期的令牌放入 return a.callStore(func(store Storer) error { expired := time.Unix(claims.ExpiresAt, 0).Sub(time.Now()) return store.Set(ctx, tokenString, expired) })
expired=未过期时间-当前时间,重新设置store,那令牌不依旧有效吗?
The text was updated successfully, but these errors were encountered:
jwt本身有过期时间,是不需要放到redis里面的。这里是将要销毁的token放到redis里面,相当于黑名单。
Sorry, something went wrong.
明白感谢
No branches or pull requests
expired=未过期时间-当前时间,重新设置store,那令牌不依旧有效吗?
The text was updated successfully, but these errors were encountered: