The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update JwtGenerator.js
V Krishnasubramaniam7d95b0381e37
diff --git a/apps/reference/src/components/JwtGenerator.js b/apps/reference/src/components/JwtGenerator.jsindex aa768cb3374..2e70c7d525e 100644--- a/apps/reference/src/components/JwtGenerator.js+++ b/apps/reference/src/components/JwtGenerator.js@@ -25,8 +25,10 @@ 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(- 'your-super-secret-jwt-secret-with-at-least-32-characters-long'+ secret)const [token, setToken] = useState(anonToken)const [signedToken, setSignedToken] = useState('')