Documentation ¶
Index ¶
Constants ¶
View Source
const ( Login = 1 Logout = 0 PrefixJWT = "jwt" )
Variables ¶
This section is empty.
Functions ¶
func IsJWTRevoked ¶
IsJWTRevoked checks if user's jwt is revoked.
func RevokeJWT ¶
RevokeJWT sets a deadline of user's jwt. All jwt issued before the new deadline will be revoked.
func SetStatusLogin ¶
You can use bitmap of cache to keep a record of each user's login status. Here we don't use it.
func SetStatusLogout ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.