更新jwt验证方法
This commit is contained in:
8
model/usermodel/jwtdata.go
Normal file
8
model/usermodel/jwtdata.go
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package usermodel
|
||||||
|
|
||||||
|
import "github.com/golang-jwt/jwt/v5"
|
||||||
|
|
||||||
|
type JWTClaims struct {
|
||||||
|
OpenID string `json:"openid"`
|
||||||
|
jwt.RegisteredClaims
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user