We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8fe996e + d9a824c commit 9b21164Copy full SHA for 9b21164
pkg/config/apikeys.go
@@ -74,7 +74,7 @@ func (a *auth) generateAPIKeys() error {
74
75
func (a auth) generateJWT(role string) (string, error) {
76
claims := CustomClaims{Issuer: "supabase-demo", Role: role}
77
- if len(a.SigningKeysPath) > 0 {
+ if len(a.SigningKeysPath) > 0 && len(a.SigningKeys) > 0 {
78
claims.ExpiresAt = jwt.NewNumericDate(time.Now().Add(time.Hour * 24 * 365 * 10)) // 10 years
79
return GenerateAsymmetricJWT(a.SigningKeys[0], claims)
80
}
0 commit comments