© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3w ago•
7 replies
Kaju

invalid JWT: unable to parse or verify signature, token signature is invalid: signing method HS256 i

self-hostedauthCLI
I’m running self-hosted Supabase using npx supabase start (Supabase CLI, not docker-compose or kubernetes). My API/Auth requests keep failing with invalid JWT: unable to parse or verify signature, token signature is invalid: signing method HS256 is invalid. I checked my auth session cookie/token and it is signed with alg: ES256 (so Supabase is generating ES256 tokens), but somewhere my app/backend is still sending an HS256 JWT (likely old anon/service_role key or a manually generated token), and GoTrue rejects it. Earlier I also saw GoTrue using GOTRUE_JWT_KEYS (ES256 JWK) and even got failed to decode signing keys: json: cannot unmarshal object into Go value of type []config.JWK when the key format was wrong. I tried forcing HS256 by setting jwt_secret = "env(AUTH_JWT_SECRET)" in supabase/config.toml and AUTH_JWT_SECRET=... in supabase/.env, cleared supabase/.temp, restarted, but HS256 still fails. I want to understand how to properly force Supabase CLI local setup to use HS256 only, or if Supabase CLI is meant to run ES256 and I should only use the keys shown by npx supabase status and stop using any HS256 JWTs.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Invalid JWT token - unable to parse or verify signature, token is unverifiable
SupabaseSSupabase / help-and-questions
8mo ago
[SOLVED] Auth-API Token signature is invalid
SupabaseSSupabase / help-and-questions
6mo ago
Custom Supabase jwt returns invalid signature
SupabaseSSupabase / help-and-questions
4y ago
Verify JWT
SupabaseSSupabase / help-and-questions
2mo ago