mirror of
https://github.com/weloe/token-go.git
synced 2025-10-06 07:56:58 +08:00
feat: add device manager api
This commit is contained in:
@@ -45,6 +45,10 @@ type IEnforcer interface {
|
||||
GetIdByToken(token string) string
|
||||
GetLoginCount(id string, device ...string) int
|
||||
|
||||
// device manager api
|
||||
GetLoginDevices(id string) []string
|
||||
GetDeviceByToken(token string) string
|
||||
|
||||
// refresh api
|
||||
GetRefreshToken(tokenValue string) string
|
||||
RefreshToken(refreshToken string, refreshModel ...*model.Refresh) (*model.RefreshRes, error)
|
||||
|
Reference in New Issue
Block a user