Social Auth flow for React Router and Supabase
supabase-library/social-auth-react-routerFreeBlock
Social Auth flow for React Router and Supabase
Install it
npx shadcn@latest add https://raw.githubusercontent.com/supabase/supabase/master/apps/ui-library/public/r/social-auth-react-router.jsonSource
1import { useSearchParams } from 'react-router'23import { Card, CardContent, CardHeader, CardTitle } from '@/registry/default/components/ui/card'45export default function Page() {6 let [searchParams] = useSearchParams()78 return (9 <div className="flex min-h-svh w-full items-center justify-center p-6 md:p-10">10 <div className="w-full max-w-sm">11 <div className="flex flex-col gap-6">12 <Card>13 <CardHeader>14 <CardTitle className="text-2xl">Sorry, something went wrong.</CardTitle>15 </CardHeader>16 <CardContent>17 {searchParams?.get('error') ? (18 <p className="text-sm text-muted-foreground">19 Code error: {searchParams?.get('error')}20 </p>21 ) : (22 <p className="text-sm text-muted-foreground">An unspecified error occurred.</p>23 )}24 </CardContent>25 </Card>26 </div>27 </div>28 </div>29 )30}
What it pulls in
npm packages
Other registry items
Files it writes
More from Supabase Library
All 60 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Current User Avatarcurrent-user-avatar-nuxtjs | Supabase Library | Blocks | Free | 1 dep · 3 files | |
| Current User Avatarcurrent-user-avatar-vue | Supabase Library | Blocks | Free | 1 dep · 3 files | |
| Dropzone (File Upload) for Nuxt and Supabasedropzone-nuxtjs | Supabase Library | Blocks | Free | 3 deps · 4 files | |
| Dropzone (File Upload) for Vue and Supabasedropzone-vue | Supabase Library | Blocks | Free | 3 deps · 4 files | |
| Infinite Query Hookinfinite-query-hook | Supabase Library | Blocks | Free | 2 deps | |
| Password Based Auth flow for Nextjs and Supabasepassword-based-auth-nextjs | Supabase Library | Blocks | Free | 2 deps · 17 files | |
| Password Based Auth flow for Nuxt.js and Supabasepassword-based-auth-nuxtjs | Supabase Library | Blocks | Free | 2 deps · 12 files | |
| Password Based Auth flow for React and Supabasepassword-based-auth-react | Supabase Library | Blocks | Free | 1 dep · 5 files |
