Skip to content

verify_jwt with config.toml not working in local #41693

Closed

Description

@joelpramos

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

From what I can tell, verify_jwt isn't working locally or at least working consistently with the deployed environment at supabase.com. I don't have my function defined in the config.toml so I would expect by default verify_jwt would be set to 'true' but it isn't enforced.

In local I can use just an 'apikey' header. Supabase's own API Gateway does 'translate' into an Authorization header in my local and then I can validate the appropriate tokens are set up in my middleware - all what I would expect.

On the deployed environment I get a 401 "Missing authorization header".

I already know the validation is expected as per https://supabase.com/docs/guides/api/api-keys#known-limitations-and-compatibility-differences and that for each of my functions I should be setting up the 'verify_jwt' = false but don't think the discrepancy in behaviour in local is expected.

System information

  • OS: macOS
  • Version of supabase-js: N/A
  • Version of Supabase: 2.67.1

Activity

  1. added
    bug
    on Jan 3, 2026
  2. coderabbitai commented on Jan 3, 2026

    @coderabbitai
    Contributor

    📝 CodeRabbit Plan Mode

    Generate an implementation plan and prompts that you can use with your favorite coding agent.

    • Create Plan
    Examples

    🔗 Similar Issues

    Related Issues

    👤 Suggested Assignees

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. added
    external-issue
    on Jan 3, 2026
  4. kallebysantos commented on Jan 4, 2026

    @kallebysantos
    Member

    Hi @joelpramos 💚 — I hope that you had a happy new year!!

    With the introduction of the new API & JWT Signing keys the verify_jwt will be disabled since its not compatible with the new methods.

    We're already working on documenting it #41444.

    For now, my recommendation is to verify_jwt=false, then secure your endpoint using the supabase.js auth integration.
    Like described in this section from the incoming docs PR.

  5. self-assigned this
    on Jan 4, 2026
  6. joelpramos commented on Jan 4, 2026

    @joelpramos
    Author

    This is all good and makes sense - just commenting on the discrepancy in local dev.

  7. kallebysantos commented on Jan 4, 2026

    @kallebysantos
    Member

    You may also need to generate local JWKs like described here

  8. Hallidayo commented on Jun 3, 2026

    @Hallidayo
    Collaborator

    Hi all, We’re going to close this one due to inactivity. Please feel free to reopen if you’re still having issues here or open a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugexternal-issueto-triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions