From 75665a554dcdec2acdf8f307315f53e459152c4c Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Fri, 30 Jan 2026 15:07:12 +0800 Subject: [PATCH] fix: defaults to legacy anon key --- pkg/config/apikeys.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/apikeys.go b/pkg/config/apikeys.go index 12ecb20762..1149e5a8d1 100644 --- a/pkg/config/apikeys.go +++ b/pkg/config/apikeys.go @@ -74,7 +74,7 @@ func (a *auth) generateAPIKeys() error { func (a auth) generateJWT(role string) (string, error) { claims := CustomClaims{Issuer: "supabase-demo", Role: role} - if len(a.SigningKeys) > 0 { + if len(a.SigningKeysPath) > 0 { claims.ExpiresAt = jwt.NewNumericDate(time.Now().Add(time.Hour * 24 * 365 * 10)) // 10 years return GenerateAsymmetricJWT(a.SigningKeys[0], claims) }