Authentication issue with a malformed JWT token while using Supabase API key and JWT secret

Describe the problem/error/question

I’m facing an issue with Supabase when attempting to authenticate using an API key (service role) and JWT secret. The system is throwing an error related to the token format, even though I have verified the token using a tool.

What is the error message (if any)?

Invalid JWT: unable to parse or verify signature, token is malformed: token contains an invalid number of segments.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: [n8nio/n8n:latest
  • **Running n8n via Docker
  • Operating system: window

Thank you so much for your support!

Hi,

Just curious, is there a particular reason why you’re not using the Supabase or Postgres node? Depending on what you’re trying to achieve, using one of those might simplify the setup.

thanks for your interest! The goal here is to set up authentication when a user makes a request. I haven’t found any nodes that fit this purpose yet—if you know of one that might work, I’d love to hear about it. Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.