saasykits / next-lucia-auth

This is a Next.js T3 project with authentication implemented using Lucia.
https://next-lucia.vercel.app
MIT License
350 stars 36 forks source link

How to add unprotected route ? #59

Closed BaptisteGarcin closed 2 months ago

BaptisteGarcin commented 2 months ago

SHould I add my unprotected routes in the matcher in middleware.ts ?

iamtouha commented 2 months ago

Not necessary. Auth validation is done on page level and not in middleware.