chore: prettier everywhere
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { withAuth } from "next-auth/middleware"
|
||||
import { withAuth } from 'next-auth/middleware';
|
||||
|
||||
export default withAuth(
|
||||
function middleware() {
|
||||
@@ -9,11 +9,11 @@ export default withAuth(
|
||||
callbacks: {
|
||||
authorized: ({ token }) => {
|
||||
// Vérifier si l'utilisateur a un token valide
|
||||
return !!token
|
||||
return !!token;
|
||||
},
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
|
||||
export const config = {
|
||||
matcher: [
|
||||
@@ -30,4 +30,4 @@ export const config = {
|
||||
*/
|
||||
'/((?!api/auth|login|register|profile|_next/static|_next/image|favicon.ico|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)',
|
||||
],
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user