Deno Not Implemented error in Edge Function

I'm trying to follow the docs (https://supabase.com/docs/guides/functions/examples/push-notifications?platform=fcm) on setting up FCM with Supabase, but getting an error when the function is run. The error is as follows:

Event message
Error: Not implemented: crypto.Sign
    at notImplemented (https://deno.land/std@0.177.1/node/_utils.ts:6:11)
    at new Sign (https://deno.land/std@0.177.1/node/internal/crypto/sig.ts:10:9)
    at Object.createSign (https://deno.land/std@0.177.1/node/crypto.ts:41:12)
    at Object.sign (https://esm.sh/v135/jwa@2.0.0/deno/jwa.mjs:10:1429)
    at Object.B [as sign] (https://esm.sh/v135/jws@4.0.0/deno/jws.mjs:16:2178)
    at T.requestToken (https://esm.sh/v135/gtoken@7.0.1/deno/gtoken.mjs:8:4404)
    at T.getTokenAsyncInner (https://esm.sh/v135/gtoken@7.0.1/deno/gtoken.mjs:8:3391)
    at T.getTokenAsync (https://esm.sh/v135/gtoken@7.0.1/deno/gtoken.mjs:8:2968)
    at T.getToken (https://esm.sh/v135/gtoken@7.0.1/deno/gtoken.mjs:8:2117)
    at i.refreshTokenNoCache (https://esm.sh/v135/google-auth-library@9.4.1/deno/google-auth-library.mjs:37:23973)


The function deploy successfully, but this error occurs when the function itself is run by the database trigger. I suspect the issue comes from the fact that this is running on v0.177.1 of Deno, which is nearly a year old at this point. Is that expected, or is there a way to update that?
Send Push Notifications to your React Native iOS and Android apps using Expo.
Was this page helpful?