mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 10:13:01 +00:00
feat:In the development mode, the token timeout is adjusted to infinity
This commit is contained in:
@@ -289,8 +289,8 @@ func (mw *GinJWTMiddleware) MiddlewareInit() error {
|
||||
}
|
||||
|
||||
if config2.ApplicationConfig.Mode == "dev" {
|
||||
// TODO: dev mode token过期时长 为 100 年
|
||||
mw.Timeout = time.Duration(8760100) * time.Hour
|
||||
// TODO: dev mode token过期时长 为 10 年
|
||||
mw.Timeout = time.Duration(876010) * time.Hour
|
||||
}
|
||||
|
||||
if mw.TimeFunc == nil {
|
||||
|
||||
Reference in New Issue
Block a user