mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: build error
This commit is contained in:
@ -1,22 +0,0 @@
|
||||
import { getCsrfToken } from 'next-auth/react';
|
||||
import useCsrfToken from '@/hooks/useCsrfToken';
|
||||
import DjangoCSRFToken from '@/components/DjangoCSRFToken'
|
||||
|
||||
export default function SignIn({ csrfToken }) {
|
||||
|
||||
const csrfToken = useCsrfToken();
|
||||
return (
|
||||
<form method="post" action="/api/auth/callback/credentials">
|
||||
<DjangoCSRFToken csrfToken={csrfToken} />
|
||||
<label>
|
||||
Email
|
||||
<input name="email" type="email" />
|
||||
</label>
|
||||
<label>
|
||||
Password
|
||||
<input name="password" type="password" />
|
||||
</label>
|
||||
<button type="submit">Sign in</button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
@ -1,4 +1,4 @@
|
||||
import { signOut } from 'next-auth/client';
|
||||
import { signOut } from 'next-auth/react';
|
||||
|
||||
export default function SignOut() {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user