Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Fix comment typo
天舟5ecf06e865bf
diff --git a/bin/server/cmd/root.go b/bin/server/cmd/root.goindex d5041060dc..f1bab11f0d 100644--- a/bin/server/cmd/root.go+++ b/bin/server/cmd/root.go@@ -120,7 +120,7 @@ func init() {type profile struct {// mode can be "release" or "dev"mode string- // dns points to where Bytebase stores its own data+ // dsn points to where Bytebase stores its own datadsn string// seedDir points to where to populate the initial data.seedDir stringdiff --git a/server/jwt.go b/server/jwt.goindex ed52abee07..47b3440bd9 100644--- a/server/jwt.go+++ b/server/jwt.go@@ -40,7 +40,7 @@ const (// 2. The access token has already expired, we refresh the token so that the ongoing request can pass throughcookieExpDuration = refreshTokenDuration - 1*time.Minute- // Conext section+ // Context section// The key name used to store principal id in the context// principal id is extracted from the jwt token subject field.principalIdContextKey = "principal-id"@@ -198,7 +198,7 @@ func JWTMiddleware(l *zap.Logger, p api.PrincipalService, next echo.HandlerFunc,if err != nil {var ve *jwt.ValidationErrorif errors.As(err, &ve) {- // If expiration error is the only error, we will clear the err+ // If expiration error is the only error, we will clear the err// and generate new access token and refresh tokenif ve.Errors == jwt.ValidationErrorExpired {err = nil