Home / Function/ JwtGeneratorSimple() — supabase Function Reference

JwtGeneratorSimple() — supabase Function Reference

Architecture documentation for the JwtGeneratorSimple() function in JwtGeneratorSimple.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  1edb3f71_cb68_1526_8e24_5b60cc7a931f["JwtGeneratorSimple()"]
  3431b1af_4217_9400_15cc_2f2734269fce["generateKeys()"]
  1edb3f71_cb68_1526_8e24_5b60cc7a931f -->|calls| 3431b1af_4217_9400_15cc_2f2734269fce
  style 1edb3f71_cb68_1526_8e24_5b60cc7a931f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/components/JwtGenerator/JwtGeneratorSimple.tsx lines 43–78

export default function JwtGeneratorSimple() {
  const [keys, setKeys] = useState(generateKeys)

  const regenerate = () => {
    setKeys(generateKeys())
  }

  return (
    <div className="border rounded-lg p-4">
      <div className="grid mb-8">
        <label htmlFor="secret">JWT_SECRET</label>
        <CodeBlock language="bash" className="relative font-mono">
          {keys.secret}
        </CodeBlock>
      </div>

      <div className="grid mb-8">
        <label htmlFor="anon">ANON_KEY</label>
        <CodeBlock language="bash" className="relative font-mono">
          {keys.anonKey}
        </CodeBlock>
      </div>

      <div className="grid mb-8">
        <label htmlFor="service">SERVICE_ROLE_KEY</label>
        <CodeBlock language="bash" className="relative font-mono">
          {keys.serviceRoleKey}
        </CodeBlock>
      </div>

      <Button type="primary" onClick={regenerate}>
        Generate new
      </Button>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does JwtGeneratorSimple() do?
JwtGeneratorSimple() is a function in the supabase codebase.
What does JwtGeneratorSimple() call?
JwtGeneratorSimple() calls 1 function(s): generateKeys.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free