© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
5 replies
Arsenaux

Local Setup with NEW API keys

Hi, I'm trying out the new API keys in my local instance but whenever I create the client and run a request against the db, I always get this error:

[Error] {
code: "PGRST301",
details: null,
hint: null,
message: "Expected 3 parts in JWT; got 1"
}

I get that the new secret key isn't a valid JWT which is the supposedly alternative for the old
service_role
service_role
key. I'm using this within an edge function. Can anyone help me overcome this? I would want to stay within my local environment first while testing everything.
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

New API Keys for local dev
SupabaseSSupabase / help-and-questions
6mo ago
New api keys issues
SupabaseSSupabase / help-and-questions
2mo ago
Create API keys error....for new TWT Signing key setup
SupabaseSSupabase / help-and-questions
7mo ago
New API keys in Supabase
SupabaseSSupabase / help-and-questions
3w ago