Mr Void
Mr Void
DDeno
Created by Mr Void on 1/9/2024 in #help
Error: Not implemented: crypto.Sign
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)
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 following is a supabase edge-function that is meant to send a post request to Firebase Cloud Messaging. However, it throws the error above and I am not sure why this is happening or how to solve it. This is the guide that I follow: https://supabase.com/docs/guides/functions/examples/push-notifications?platform=fcm
3 replies