Error: not implemented: crypto.Sign

Following guide:
https://supabase.com/docs/guides/functions/examples/push-notifications?platform=fcm

Encountered this error in edge function log after inserting a new row into Notifications table:
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)


How to resolve?
Send Push Notifications to your React Native iOS and Android apps using Expo.
Was this page helpful?