fix: build error

This commit is contained in:
Luc SORIGNET
2025-02-17 11:18:28 +01:00
parent fc337b1e0b
commit 65d5b8c424
2 changed files with 1 additions and 23 deletions

View File

@ -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>
);
}

View File

@ -1,4 +1,4 @@
import { signOut } from 'next-auth/client'; import { signOut } from 'next-auth/react';
export default function SignOut() { export default function SignOut() {
return ( return (