feat: profile api

This commit is contained in:
naiba committed 2024-11-03 23:28:10 +08:00
1 parent 333aa59eb6
commit 323f4d25c2
3 files changed
+19

No files matched your search

+1
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,