Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: change default token expiration duration (#7274)
Danny Xu0e940478c985
diff --git a/backend/api/auth/auth.go b/backend/api/auth/auth.goindex affab5a21b..54f16af781 100644--- a/backend/api/auth/auth.go+++ b/backend/api/auth/auth.go@@ -34,11 +34,11 @@ const (RefreshTokenAudienceFmt = "bb.user.refresh.%s"// MFATempTokenAudienceFmt is the format of the MFA temp token audience.MFATempTokenAudienceFmt = "bb.user.mfa-temp.%s"- apiTokenDuration = 2 * time.Hour- accessTokenDuration = 8 * time.Hour+ apiTokenDuration = 1 * time.Hour+ accessTokenDuration = 1 * time.HourrefreshTokenDuration = 7 * 24 * time.Hour// RefreshThresholdDuration is the threshold duration for refreshing token.- RefreshThresholdDuration = 1 * time.Hour+ RefreshThresholdDuration = 0 * time.Hour// CookieExpDuration expires slightly earlier than the jwt expiration. Client would be logged out if the user// cookie expires, thus the client would always logout first before attempting to make a request with the expired jwt.