16 lines
324 B
TypeScript
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>
|
||
|
);
|
||
|
}
|