BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Supabase UI Library/password-based-auth-react

Password Based Auth flow for React and Supabase

supabase-ui-library/password-based-auth-react
UnverifiedBlock

Password Based Auth flow for React and Supabase

Install it

npx shadcn@latest add https://raw.githubusercontent.com/aimultiple-benchmark/supabase-bench-gre-2/main/apps/ui-library/public/r/password-based-auth-react.json

Source

registry/default/blocks/password-based-auth-react/components/login-form.tsxraw.githubusercontent.com/aimultiple-benchmark/supabase-bench-gre-2/main/apps/ui-library/public/r/password-based-auth-react.json
1import { useState } from 'react'
2
3import { cn } from '@/lib/utils'
4import { createClient } from '@/registry/default/clients/react/lib/supabase/client'
5import { Button } from '@/registry/default/components/ui/button'
6import {
7 Card,
8 CardContent,
9 CardDescription,
10 CardHeader,
11 CardTitle,
12} from '@/registry/default/components/ui/card'
13import { Input } from '@/registry/default/components/ui/input'
14import { Label } from '@/registry/default/components/ui/label'
15
16export function LoginForm({ className, ...props }: React.ComponentPropsWithoutRef<'div'>) {
17 const [email, setEmail] = useState('')
18 const [password, setPassword] = useState('')
19 const [error, setError] = useState<string | null>(null)
20 const [isLoading, setIsLoading] = useState(false)
21 const supabase = createClient()
22
23 const handleLogin = async (e: React.FormEvent) => {
24 e.preventDefault()
25 setIsLoading(true)
26 setError(null)
27
28 try {
29 const { error } = await supabase.auth.signInWithPassword({
30 email,
31 password,
32 })
33 if (error) throw error
34 // Update this route to redirect to an authenticated route. The user already has an active session.
35 location.href = '/protected'
36 } catch (error: unknown) {
37 setError(error instanceof Error ? error.message : 'An error occurred')
38 } finally {
39 setIsLoading(false)
40 }
41 }
42
43 return (
44 <div className={cn('flex flex-col gap-6', className)} {...props}>
45 <Card>
46 <CardHeader>
47 <CardTitle className="text-2xl">Login</CardTitle>
48 <CardDescription>Enter your email below to login to your account</CardDescription>
49 </CardHeader>
50 <CardContent>
51 <form onSubmit={handleLogin}>
52 <div className="flex flex-col gap-6">
53 <div className="grid gap-2">
54 <Label htmlFor="email">Email</Label>
55 <Input
56 id="email"
57 type="email"
58 placeholder="m@example.com"
59 required
60 value={email}
61 onChange={(e) => setEmail(e.target.value)}
62 />
63 </div>
64 <div className="grid gap-2">
65 <div className="flex items-center">
66 <Label htmlFor="password">Password</Label>
67 <a
68 href="/forgot-password"
69 className="ml-auto inline-block text-sm underline-offset-4 hover:underline"
70 >
71// … truncated

What it pulls in

npm packages

  • @supabase/supabase-js@latest

Other registry items

  • button
  • card
  • input
  • label

Files it writes

  • registry/default/blocks/password-based-auth-react/components/login-form.tsx
  • registry/default/blocks/password-based-auth-react/components/sign-up-form.tsx
  • registry/default/blocks/password-based-auth-react/components/forgot-password-form.tsx
  • registry/default/blocks/password-based-auth-react/components/update-password-form.tsx
  • registry/default/clients/react/lib/supabase/client.ts

Facts

Registry
Supabase UI Library
Type
registry:block
Access
Unverified
Files written
5
Licence
the repository states none
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

supabase.com DrAkhilKolli/ExperimentSupabase on GitHub Raw registry item This item as JSON

More from Supabase UI Library

All 2 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Current User Avatarcurrent-user-avatar-nuxtjsSupabase UI LibraryBlocksUnverified1 dep · 3 files
Current User Avatarcurrent-user-avatar-vueSupabase UI LibraryBlocksUnverified1 dep · 3 files
Dropzone (File Upload) for Nuxt and Supabasedropzone-nuxtjsSupabase UI LibraryBlocksUnverified3 deps · 4 files
Dropzone (File Upload) for Vue and Supabasedropzone-vueSupabase UI LibraryBlocksUnverified3 deps · 4 files
Infinite Query Hookinfinite-query-hookSupabase UI LibraryBlocksUnverified2 deps
Password Based Auth flow for Nextjs and Supabasepassword-based-auth-nextjsSupabase UI LibraryBlocksUnverified2 deps · 17 files
Password Based Auth flow for Nuxt.js and Supabasepassword-based-auth-nuxtjsSupabase UI LibraryBlocksUnverified2 deps · 12 files
Password Based Auth flow for React Router and Supabasepassword-based-auth-react-routerSupabase UI LibraryBlocksUnverified4 deps · 11 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex