{"slug": "is-your-supabase-login-signed-with-p-256-the-10-second-check", "title": "Is Your Supabase Login Signed With P-256? The 10-Second Check", "summary": "A developer published a free one-file Node script that checks whether a Supabase project signs Auth tokens with P-256 (ES256) or the legacy HS256 shared secret, following a 5 December joint statement from Anthropic and OpenAI reporting separately discovered weaknesses in some internet cryptography. The statement named no signing method and published no attack, and Supabase's 4 December guidance said P-256 is the default on new projects, existing projects need no immediate changes, and users should not switch to HS256, which shares one secret for signing and verification.", "body_md": "*Security notice. Reported as of 6 Dec 2026. Sources: [Anthropic and OpenAI's joint statement, 5 Dec 2026](https://www.anthropic.com/news/joint-statement-cryptography) and [Supabase's post, 4 Dec 2026](https://supabase.com/blog/post-quantum-cryptography-and-your-supabase-project).*\n\nIf you build on Supabase, this week's cryptography news probably reached you as a rumor with a strange name in it: P-256. That's the signing method Supabase uses on new projects to stamp your users' logins so nobody can fake them. Most people asking about it don't care how it works. They want to know whether their app is on it and whether to do anything today.\n\nYou can find out in about ten seconds, from your own browser. If you'd rather not handle tokens at all, I also wrote a [free one-file check](https://publicbydefault.dev/kit?src=post) that gives you the answer and what to do about it. Both are below.\n\nOn 5 December, Anthropic and OpenAI published a joint statement saying their researchers had separately \"found weaknesses in some of the cryptography that protects the internet.\" The statement doesn't name any signing method. It says the findings \"aren't an immediate threat to the public,\" and the two companies aren't publishing their methods.\n\nNobody has published an attack. The P-256 part comes from commentators repeating what they've heard, not from the statement. Treat it as worth watching, not as broken.\n\nSupabase posted its own guidance on 4 December. It says P-256 signs Supabase Auth tokens by default on new projects, that existing projects don't need immediate changes, and that it won't change an existing project's signing algorithm or key without notice.\n\nDo this on your own app, signed in as your own test user.\n\n`Authorization: Bearer eyJ...`. Copy the token after \"Bearer\".\n\n```\nJSON.parse(atob(\"PASTE_TOKEN\".split(\".\")[0].replace(/-/g,\"+\").replace(/_/g,\"/\")))\n```\n\nThat decodes only the first part of the token, the header, which says how the token was signed. Look at `alg`.\n\nThe token is a live login for your account, so don't paste it into websites or chats. The one-liner runs in your own browser and sends nothing.\n\nHS256 means your project still signs logins with the legacy JWT secret. The P-256 news doesn't touch it, because HS256 is built a different way and doesn't use P-256.\n\nIt's still the thing to fix. Supabase no longer recommends the legacy secret, and its post says moving to signing keys \"is a better use of this week than anything else on this page.\" The move starts with the Migrate JWT secret button on the JWT signing keys page in your dashboard, and Supabase's docs say it doesn't cause downtime.\n\nES256 means P-256. That's my demo app's answer, and it's the default for new projects.\n\nThere's nothing to do today. In particular, don't switch to HS256 to get away from P-256. HS256 uses one shared secret for both signing and checking tokens, so anything that can check your users' logins could also forge them. Supabase's post says this directly: \"Don't switch to HS256.\" It also says not to rotate keys in a hurry.\n\nKeep an eye on Supabase's changelog. If it changes defaults or adds new signing methods, it says it'll post a dated notice first.\n\nCopying a live token out of DevTools isn't everyone's idea of fun, so I turned the check into a small script. It's free and it's one file. It needs Node 20 or later, with no install and no account.\n\n[Download the free signing-key check](https://publicbydefault.dev/kit?src=post)\n\nRun it against an app you own:\n\n```\nnode check-signing-key.mjs --url https://your-app.example\n```\n\nIt finds your Supabase project in your site's JavaScript and reads the project's public key list. If it can't find the project (a custom domain, for example), give it the project URL from Project Settings > API instead:\n\n```\nnode check-signing-key.mjs --supabase-url https://abcd1234.supabase.co\n```\n\nYou get one of three answers. WATCH means your tokens are signed with P-256, with Ed25519, or with the legacy shared secret. Nothing is broken today, and the check lists three things to do this week. OK means your tokens use RSA, which isn't the method in the news; the same steps are still worth doing, without the rush. CAN'T TELL means it couldn't reach your project's key list, so check the URL and try again. It never says your app is broken, because nothing public shows that it is.\n\nWhat it sends: one request to your project's public key list (`/auth/v1/.well-known/jwks.json`), plus your site's page and scripts when you use `--url`, up to 60 requests in all and at most one a second. It never sends a write, never uses a key it finds, and never uploads anything. The first time you check a site, it asks you to type the hostname to confirm the app is yours.\n\nThe download page shows the file's SHA-256, so you can confirm you got the same file, and the script opens as plain text, so you can read it before you run it.\n\nSupabase published a checkup your AI tool can follow. This is the prompt from the Short's pinned comment. Paste it into Cursor, Lovable, Claude Code or whatever you build with:\n\n```\nCheck my Supabase project against Supabase's post-quantum \nsecurity guidance. \nFetch https://supabase.com/docs/guides/ai-tools/ai-prompts/post-quantum-security-checkup.md \nand follow its steps. If you can't open that page, \ntell me so I can paste the full prompt instead.\n```\n\nRead what it plans to change before you accept anything. The checkup's own advice is the same as above: find out which algorithm you're on, move off the legacy secret if you're still on it, and leave ES256 alone.\n\nIf someone else built your app, send them one question: \"Does our Supabase login use the legacy JWT secret or signing keys, and which algorithm?\" Or send them the [free check](https://publicbydefault.dev/kit?src=post) and ask for its answer.\n\nAnthropic and OpenAI named no signing method and published no attack. P-256 is a rumor worth watching, and it's what Supabase uses by default. Decode your login token's header, or run the free check: HS256 means plan the move to signing keys, ES256 means nothing to do today. Either way, don't switch to HS256.\n\nThe signing-key check is the first free piece of Closed by Default, a set of checks I'm building that run against your own app and tell you whether a hole is there. More are on the way, and you can join the waitlist on [the same page](https://publicbydefault.dev/kit?src=post).\n\n*I only checked my own demo app, signed in as a fake test user. The findings about the cryptography are Anthropic and OpenAI's own statement, and the advice is Supabase's. Both are linked at the top. The story is still moving, so check Supabase's post for its current advice.*\n\n*Drafted with AI help from my video script; I checked and edited it.*", "url": "https://wpnews.pro/news/is-your-supabase-login-signed-with-p-256-the-10-second-check", "canonical_source": "https://dev.to/publicbydefault/is-your-supabase-login-signed-with-p-256-the-10-second-check-421j", "published_at": "2026-12-06 17:07:40+00:00", "updated_at": "2026-12-06 17:14:09.707747+00:00", "lang": "en", "topics": ["ai-safety", "developer-tools", "ai-tools"], "entities": ["Supabase", "Anthropic", "OpenAI", "P-256", "HS256", "ES256", "Ed25519"], "also_reported_by": [], "takeaway": "Decode a Supabase Auth token's header to read its alg claim: ES256 means P-256 signing, while HS256 means the legacy shared JWT secret, which Supabase advises migrating away from rather than switching to.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/is-your-supabase-login-signed-with-p-256-the-10-second-check", "markdown": "https://wpnews.pro/news/is-your-supabase-login-signed-with-p-256-the-10-second-check.md", "text": "https://wpnews.pro/news/is-your-supabase-login-signed-with-p-256-the-10-second-check.txt", "jsonld": "https://wpnews.pro/news/is-your-supabase-login-signed-with-p-256-the-10-second-check.jsonld"}}