BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Supabase Library/password-based-auth-nuxtjs

Password Based Auth flow for Nuxt.js and Supabase

supabase-library/password-based-auth-nuxtjs
FreeBlock

Password Based Auth flow for Nuxt.js and Supabase

Install it

npx shadcn@latest add https://raw.githubusercontent.com/supabase/supabase/master/apps/ui-library/public/r/password-based-auth-nuxtjs.json

Source

registry/default/password-based-auth/nuxtjs/app/components/login-form.vueraw.githubusercontent.com/supabase/supabase/master/apps/ui-library/public/r/password-based-auth-nuxtjs.json
1<script setup lang="ts">
2import { ref } from "vue"
3import { createClient } from "@/lib/supabase/client"
4import { Button } from "@/components/ui/button"
5import {
6 Card,
7 CardContent,
8 CardDescription,
9 CardHeader,
10 CardTitle,
11} from "@/components/ui/card"
12import { Input } from "@/components/ui/input"
13import { Label } from "@/components/ui/label"
14
15const email = ref("")
16const error = ref<string | null>(null)
17const success = ref(false)
18const isLoading = ref(false)
19
20const handleForgotPassword = async (e: Event) => {
21 e.preventDefault()
22 const supabase = createClient()
23 isLoading.value = true
24 error.value = null
25
26 try {
27 const { error: supabaseError } = await supabase.auth.resetPasswordForEmail(email.value, {
28 redirectTo: "http://localhost:3000/update-password",
29 })
30 if (supabaseError) throw supabaseError
31 success.value = true
32 } catch (err: unknown) {
33 error.value = err instanceof Error ? err.message : "An error occurred"
34 } finally {
35 isLoading.value = false
36 }
37}
38</script>
39
40<template>
41 <div class="flex flex-col gap-6">
42 <Card v-if="success">
43 <CardHeader>
44 <CardTitle class="text-2xl">Check Your Email</CardTitle>
45 <CardDescription>Password reset instructions sent</CardDescription>
46 </CardHeader>
47 <CardContent>
48 <p class="text-sm text-muted-foreground">
49 If you registered using your email and password, you will receive a password reset email.
50 </p>
51 </CardContent>
52 </Card>
53
54 <Card v-else>
55 <CardHeader>
56 <CardTitle class="text-2xl">Reset Your Password</CardTitle>
57 <CardDescription>
58 Type in your email and we&apos;ll send you a link to reset your password
59 </CardDescription>
60 </CardHeader>
61 <CardContent>
62 <form @submit="handleForgotPassword">
63 <div class="flex flex-col gap-6">
64 <div class="grid gap-2">
65 <Label for="email">Email</Label>
66 <Input
67 id="email"
68 type="email"
69 placeholder="m@example.com"
70 required
71 v-model="email"
72 />
73 </div>
74 <p v-if="error" class="text-sm text-red-500">{{ error }}</p>
75 <Button type="submit" class="w-full" :disabled="isLoading">
76 {{ isLoading ? "Sending..." : "Send reset email" }}
77 </Button>
78 </div>
79 <div class="mt-4 text-center text-sm">
80 Already have an account?
81// … truncated

What it pulls in

npm packages

  • @supabase/ssr@latest
  • @supabase/supabase-js@latest

Other registry items

  • button
  • card
  • input
  • label

Files it writes

  • registry/default/password-based-auth/nuxtjs/app/components/login-form.vue
  • registry/default/password-based-auth/nuxtjs/app/components/sign-up-form.vue
  • registry/default/password-based-auth/nuxtjs/app/components/forgot-password-form.vue
  • registry/default/password-based-auth/nuxtjs/app/components/update-password-form.vue
  • registry/default/password-based-auth/nuxtjs/app/pages/auth/login.vue
  • registry/default/password-based-auth/nuxtjs/app/pages/auth/sign-up.vue
  • registry/default/password-based-auth/nuxtjs/app/pages/auth/forgot-password.vue
  • registry/default/password-based-auth/nuxtjs/app/pages/auth/update-password.vue
  • registry/default/password-based-auth/nuxtjs/app/pages/auth/error.vue
  • registry/default/password-based-auth/nuxtjs/app/pages/auth/sign-up-success.vue
  • registry/default/password-based-auth/nuxtjs/app/pages/protected/index.vue
  • registry/default/password-based-auth/nuxtjs/server/routes/auth/confirm.get.ts

Facts

Registry
Supabase Library
Type
registry:block
Access
Free
Files written
12
Licence
Apache-2.0
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

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

More from Supabase Library

All 60 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Current User Avatarcurrent-user-avatar-nuxtjsSupabase LibraryBlocksFree1 dep · 3 files
Current User Avatarcurrent-user-avatar-vueSupabase LibraryBlocksFree1 dep · 3 files
Dropzone (File Upload) for Nuxt and Supabasedropzone-nuxtjsSupabase LibraryBlocksFree3 deps · 4 files
Dropzone (File Upload) for Vue and Supabasedropzone-vueSupabase LibraryBlocksFree3 deps · 4 files
Infinite Query Hookinfinite-query-hookSupabase LibraryBlocksFree2 deps
Password Based Auth flow for Nextjs and Supabasepassword-based-auth-nextjsSupabase LibraryBlocksFree2 deps · 17 files
Password Based Auth flow for React and Supabasepassword-based-auth-reactSupabase LibraryBlocksFree1 dep · 5 files
Password Based Auth flow for React Router and Supabasepassword-based-auth-react-routerSupabase LibraryBlocksFree4 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