Next Auth Middleware
Unanswered
Mallow bee posted this in #help-forum
Original message was deleted.
16 Replies
I think you should put it inside the
/src folderBorder Terrier
yeah, as far as i know that middleware must go inside src/
Mallow bee
Alright thank you, let me try
It does not work at all
export { default } from "next-auth/middleware";
export const config = {
matcher: ["/dashboard/:path*"],
};@wolfishy @Border Terrier I use next auth middleware but it does not work
Border Terrier
let me check the docs
@Mallow bee <@716567307383734332> <@555492053358870538> I use next auth middleware but it does not work
Border Terrier
any particular reason you are using next auth?
@Border Terrier any particular reason you are using next auth?
Mallow bee
Its for users to login with their Discord account
@Mallow bee Its for users to login with their Discord account
Border Terrier
as far as i know there a lot other libraries that allows you to do that...
i personally use a lot supabase
@Border Terrier as far as i know there a lot other libraries that allows you to do that...
Mallow bee
The code normaly work without the src dir
and i dont like something like supabase