The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Formatted with prettier and removed use of window
VKrishna20908eb0c60d3445
diff --git a/apps/reference/src/components/JwtGenerator.js b/apps/reference/src/components/JwtGenerator.jsindex 2e70c7d525e..4cbe88add65 100644--- a/apps/reference/src/components/JwtGenerator.js+++ b/apps/reference/src/components/JwtGenerator.js@@ -25,11 +25,11 @@ const serviceToken = ``.trim()export default function JwtGenerator({}) {- const secret = Array.from(window.crypto.getRandomValues(new Uint8Array(32))).map((x) => x.toString(16).padStart(2, '0')).join('')-- const [jwtSecret, setJwtSecret] = useState(- secret- )+ const secret = Array.from(crypto.getRandomValues(new Uint8Array(32)))+ .map((x) => x.toString(16).padStart(2, '0'))+ .join('')++ const [jwtSecret, setJwtSecret] = useState(secret)const [token, setToken] = useState(anonToken)const [signedToken, setSignedToken] = useState('')