feat: profile api

This commit is contained in:
naiba
2024-11-03 23:28:10 +08:00
parent 94e7e47375
commit 6322c22b49
3 changed files with 19 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ func initParams() *jwt.GinJWTMiddleware {
Realm: singleton.Conf.SiteName,
Key: []byte(singleton.Conf.JWTSecretKey),
CookieName: "nz-jwt",
SendCookie: true,
Timeout: time.Hour,
MaxRefresh: time.Hour,
IdentityKey: model.CtxKeyAuthorizedUser,