diff --git a/server/.gitignore b/server/.gitignore index cafb6408e9..dd3fe6d98c 100644 --- a/server/.gitignore +++ b/server/.gitignore @@ -12,6 +12,7 @@ mattermost.mattermost-license config/mattermost.mattermost-license config/config.json config/*.crt +config/*.key web/static/js/bundle*.js web/static/js/bundle*.js.map diff --git a/server/channels/app/license.go b/server/channels/app/license.go index fdc1234756..20c3b356c6 100644 --- a/server/channels/app/license.go +++ b/server/channels/app/license.go @@ -5,7 +5,6 @@ package app import ( "net/http" - "time" "github.com/golang-jwt/jwt/v5" "github.com/pkg/errors" @@ -14,10 +13,6 @@ import ( "github.com/mattermost/mattermost/server/v8/channels/store" ) -const ( - JWTDefaultTokenExpiration = 7 * 24 * time.Hour // 7 days of expiration -) - func (ch *Channels) License() *model.License { return ch.srv.License() } diff --git a/server/channels/app/platform/license.go b/server/channels/app/platform/license.go index d9b5fa0cde..1e162cf15e 100644 --- a/server/channels/app/platform/license.go +++ b/server/channels/app/platform/license.go @@ -9,7 +9,6 @@ import ( "fmt" "net/http" "os" - "time" "github.com/golang-jwt/jwt/v5" "github.com/pkg/errors" @@ -24,8 +23,7 @@ import ( ) const ( - LicenseEnv = "MM_LICENSE" - JWTDefaultTokenExpiration = 7 * 24 * time.Hour // 7 days of expiration + LicenseEnv = "MM_LICENSE" ) // JWTClaims custom JWT claims with the needed information for the