This error occurs because Clerk doesn't know how to generate a token compatible with Supabase yet. You need to create a JWT Template in your Clerk Dashboard.
- Log in to your Supabase Dashboard.
- Select your project (
filetransfer/myrthifravcxvcqlptcp). - Go to Project Settings (gear icon) > API.
- Scroll down to JWT Settings.
- Copy the JWT Secret (you might need to click "Reveal").
- Log in to your Clerk Dashboard.
- Go to Configure > JWT Templates.
- Click New Template.
- Select Supabase from the list.
- Name: Ensure the name is exactly
supabase. - Signing Key: This field is located right below the "Name" field.
- It might be labeled as "Signing Key", "Key", or "Secret".
- It is a large text box where you can paste the long string you copied from Supabase.
- Paste the Supabase JWT Secret here.
- Click Save.
This error ALWAYS means the keys do not match.
Try this "Clean Slate" approach:
- Clerk Dashboard: Delete the existing
supabasetemplate. - Supabase Dashboard: Go to Project Settings > API > JWT Settings.
- Check the Project ID in the URL. It should be
myrthifravcxvcqlptcp. - Reveal and Copy the JWT Secret.
- Check the Project ID in the URL. It should be
- Clerk Dashboard: Create a NEW template.
- Select Supabase.
- Name:
supabase. - Signing Key: Paste the secret you just copied.
- Save and try again.