From 2cf0425749f3840eef380445dd41fffd5f121183 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Tue, 1 Aug 2023 14:46:21 +0200 Subject: [PATCH] consistent styles --- apps/docs/components/JwtGenerator.js | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/docs/components/JwtGenerator.js b/apps/docs/components/JwtGenerator.js index d0dc7a7bf08..f435a6db780 100644 --- a/apps/docs/components/JwtGenerator.js +++ b/apps/docs/components/JwtGenerator.js @@ -8,19 +8,19 @@ const today = new Date(now.getFullYear(), now.getMonth(), now.getDate()) const fiveYears = new Date(now.getFullYear() + 5, now.getMonth(), now.getDate()) const anonToken = ` { - "role": "anon", - "iss": "supabase", - "iat": ${Math.floor(today / 1000)}, - "exp": ${Math.floor(fiveYears / 1000)} + "role": "anon", + "iss": "supabase", + "iat": ${Math.floor(today / 1000)}, + "exp": ${Math.floor(fiveYears / 1000)} } `.trim() const serviceToken = ` { - "role": "service_role", - "iss": "supabase", - "iat": ${Math.floor(today / 1000)}, - "exp": ${Math.floor(fiveYears / 1000)} + "role": "service_role", + "iss": "supabase", + "iat": ${Math.floor(today / 1000)}, + "exp": ${Math.floor(fiveYears / 1000)} } `.trim() @@ -50,12 +50,13 @@ export default function JwtGenerator({}) { type="text" placeholder="JWT Secret (at least 32 characters)" value={jwtSecret} + style={{ fontFamily: 'monospace' }} onChange={(e) => setJwtSecret(e.target.value)} />
- ANON_KEY SERVICE_KEY @@ -66,9 +67,10 @@ export default function JwtGenerator({}) { setToken(e.target.value)} />
@@ -80,7 +82,7 @@ export default function JwtGenerator({}) { {signedToken && (

Generated Token:

- + {signedToken}