monorepo/apps/web2/src/app/_components/auth/signin-button.tsx

16 lines
324 B
TypeScript

import { signIn } from '@/auth';
export function SignIn() {
return (
<form
action={async () => {
'use server';
await signIn('github', { redirectTo: '/dashboard' });
}}
>
<button type="submit">Sign in</button>
</form>
);
}