diff --git a/pkg/config/apikeys.go b/pkg/config/apikeys.go index 12ecb2076..1149e5a8d 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) }