diff options
Diffstat (limited to 'apps/web/components/signin/SignInProviderButton.tsx')
| -rw-r--r-- | apps/web/components/signin/SignInProviderButton.tsx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/web/components/signin/SignInProviderButton.tsx b/apps/web/components/signin/SignInProviderButton.tsx new file mode 100644 index 00000000..0831236c --- /dev/null +++ b/apps/web/components/signin/SignInProviderButton.tsx @@ -0,0 +1,21 @@ +"use client"; +import { Button } from "@/components/ui/button"; +import { ClientSafeProvider, signIn } from "next-auth/react"; + +export default function SignInProviderButton({ + provider, +}: { + provider: ClientSafeProvider; +}) { + return ( + <Button + onClick={() => + signIn(provider.id, { + callbackUrl: "/", + }) + } + > + Sign in with {provider.name} + </Button> + ); +} |
