Documentation
¶
Index ¶
Constants ¶
View Source
const JwtAuthIdentifier = "dysodeng.com/dysodeng/app/auth"
Variables ¶
This section is empty.
Functions ¶
func VerifyToken ¶
VerifyToken 验证用户token
Types ¶
type AuthCodeToken ¶
AuthCodeToken 核验码token数据结构
type Token ¶
type Token struct {
Registered bool `json:"registered"` // 用户是否已注册
Token json.Token `json:"token"`
Expire int64 `json:"expire"`
RefreshToken json.Token `json:"refresh_token"`
RefreshTokenExpire int64 `json:"refresh_token_expire"`
Attach interface{} `json:"attach,omitempty"`
}
Token token 数据结构
Click to show internal directories.
Click to hide internal directories.