© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago•
2 replies
NilsWeiser

Custom JWT (ES256) works with Realtime but fails on Storage API

I'm minting my own JWTs using ES256 (elliptic curve) with a private key for my Supabase project.
The tokens work perfectly with:
- ✅ PostgREST/Database queries
- ✅ Realtime subscriptions
- ✅ RLS policies using auth.jwt()

But Storage API fails with:
Key for the ES256 algorithm must be one of type CryptoKey,
KeyObject, or JSON Web Key. Received an instance of
Uint8Array

Same JWT, different services. Seems like Storage has a bug
with asymmetric JWT validation. Anyone else experiencing
this?
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

Realtime with custom JWT not working on Supabase platform
SupabaseSSupabase / help-and-questions
4y ago
Realtime not working with Custom Jwt with RLS
SupabaseSSupabase / help-and-questions
3mo ago
Help with custom JWT
SupabaseSSupabase / help-and-questions
4mo ago
Custom JWT
SupabaseSSupabase / help-and-questions
7mo ago