({ provider }: { provider?: string })
| 1 | import { signIn, signOut } from "@/lib/auth" |
| 2 | |
| 3 | export 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 | |
| 18 | export function SignOut() { |
| 19 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected