MCPcopy Create free account
hub / github.com/prisma/prisma-examples / SignIn

Function SignIn

orm/authjs-nextjs/components/auth-components.tsx:3–16  ·  view source on GitHub ↗
({ provider }: { provider?: string })

Source from the content-addressed store, hash-verified

1import { signIn, signOut } from "@/lib/auth"
2
3export function SignIn({ provider }: { provider?: string }) {
4 return (
5 <form
6 action={async () => {
7 "use server"
8 await signIn(provider)
9 }}
10 >
11 <button className="bg-neutral-700 text-white p-2 rounded-md">
12 Sign In with {provider}
13 </button>
14 </form>
15 )
16}
17
18export function SignOut() {
19 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected