You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The edge runtime 1.7.0 throws the following error when an edge function is called in an application that is using anon/service role keys:
TypeError: Key for the ES256 algorithm must be of type CryptoKey. Received an instance of Uint8Array
at asymmetricTypeCheck (https://deno.land/x/[email protected]/lib/check_key_type.ts:14:11)
at checkKeyType (https://deno.land/x/[email protected]/lib/check_key_type.ts:39:5)
at flattenedVerify (https://deno.land/x/[email protected]/jws/flattened/verify.ts:78:3)
at compactVerify (https://deno.land/x/[email protected]/jws/compact/verify.ts:15:26)
at Module.jwtVerify (https://deno.land/x/[email protected]/jwt/verify.ts:5:26)
at verifyJWT (file:///var/tmp/sb-compile-edge-runtime/root/index.ts:95:16)
at Object.handler (file:///var/tmp/sb-compile-edge-runtime/root/index.ts:140:34)
at mapped (ext:runtime/http.js:231:42)
at respond (ext:runtime/http.js:339:14)
at handleHttp (ext:runtime/http.js:160:9)
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
On your local machine:
Run a fresh supabase init
Create a test edge hello world function
supabase start
Create a user (then a ES256 JWT is issued)
Call edge function with the JWT
Crash, check edge function logs
Expected behavior
Verification to work and no crash
System information
OS: macOS, linux
Version of supabase CLI: 2.72.6,
Version of edge runtime: 1.7.0
Reacted by John Bull, Kalleby Santos, Ricardo Matsui, Ægir Már Jónsson, Matěj Štágl and Romain G
Hey @electronicmax 💚
Since API keys and JWT did change, you need to explicit verify_jwt = false for edge functions, like described in docs page.
For generating a local JWK, please check.
About self-hosted(docker-compose) there's no migration guide yet about updating your keys,
but at EdFn side it should be the same approach, with the possibility of updating the main/index.ts directly
Activity
aantti commentedon Jan 14, 2026
Related? supabase/supabase#41693
https://supabase.com/docs/guides/functions/auth
Cc @kallebysantos
kallebysantos commentedon Jan 14, 2026
Hey @electronicmax 💚
Since API keys and JWT did change, you need to explicit
verify_jwt = falsefor edge functions, like described in docs page.For generating a local JWK, please check.
About self-hosted(docker-compose) there's no migration guide yet about updating your keys,
but at EdFn side it should be the same approach, with the possibility of updating the
main/index.tsdirectly