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
I am using a Supabase edge function to create tokens.
When I call
const client = StreamChat.getInstance<StreamType>(
Deno.env.get("GETSTREAM_API_KEY") as string,
Deno.env.get("GETSTREAM_API_KEY_SECRET") as string,
);
I get the error below.
Error: secretOrPrivateKey is not valid key material
at Object.de.exports [as sign] (https://esm.sh/v131/jsonwebtoken@9.0.1/deno/jsonwebtoken.mjs:10:10146)
at Re (https://esm.sh/v131/stream-chat@8.10.1/deno/stream-chat.mjs:7:17877)
at new o (https://esm.sh/v131/stream-chat@8.10.1/deno/stream-chat.mjs:7:20595)
at new o (https://esm.sh/v131/stream-chat@8.10.1/deno/stream-chat.mjs:8:13970)
at Function.value (https://esm.sh/v131/stream-chat@8.10.1/deno/stream-chat.mjs:8:59543)
at
I have battled this for days and I am on the verge of giving up.
The text was updated successfully, but these errors were encountered:
I am using a Supabase edge function to create tokens.
When I call
I get the error below.
I have battled this for days and I am on the verge of giving up.
The text was updated successfully, but these errors were encountered: