mirror of
https://github.com/weloe/token-go.git
synced 2025-10-04 23:22:41 +08:00
feat: add checkId getId api and SecondAuth api
This commit is contained in:
@@ -125,6 +125,10 @@ func (e *Enforcer) spliceBannedKey(id string, service string) string {
|
||||
return e.config.TokenName + ":" + e.loginType + ":ban:" + service + ":" + id
|
||||
}
|
||||
|
||||
func (e *Enforcer) spliceSecSafeKey(token string, service string) string {
|
||||
return e.config.TokenName + ":" + e.loginType + ":safe:" + service + ":" + token
|
||||
}
|
||||
|
||||
func (e *Enforcer) SetJwtSecretKey(key string) {
|
||||
e.config.JwtSecretKey = key
|
||||
}
|
||||
|
Reference in New Issue
Block a user