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-nuxtjs

Password Based Auth flow for Nuxt.js and Supabase

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

Password Based Auth flow for Nuxt.js and Supabase

Install it

npx shadcn@latest add https://raw.githubusercontent.com/sophialiuhk2007/club-website-backend/main/apps/ui-library/public/r/password-based-auth-nuxtjs.json

Source

registry/default/password-based-auth/nuxtjs/app/components/login-form.vueraw.githubusercontent.com/sophialiuhk2007/club-website-backend/main/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 UI Library
Type
registry:block
Access
Unverified
Files written
12
Licence
Apache-2.0
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

supabase.com aimultiple-benchmark/supabase-bench-cr-2 on GitHub Raw registry item This item as JSON

More from Supabase UI Library

All 37 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 React and Supabasepassword-based-auth-reactSupabase UI LibraryBlocksUnverified1 dep · 5 files
Password Based Auth flow for React Router and Supabasepassword-based-auth-react-routerSupabase UI LibraryBlocksUnverified4 deps · 11 files
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex