vahid-nejad / NextAuth_v5

45 stars 12 forks source link

[FIX] place middleware in the same level as app inside src to fix middleware protected routes #1

Open thatbeautifuldream opened 7 months ago

thatbeautifuldream commented 7 months ago

The middlware protected rooutes seems to be broken as per final commit.

This PR fixes that by placing the middleware.ts file up the tree inside src and in the same level as app directory as recommended by next js docs