Allow unauthenticated access to invite and verification routes
Add /invite and /api/invitations/verify to public paths so invited users can access the invite page and complete registration without being redirected to login. Made-with: Cursor
This commit is contained in:
parent
807d197243
commit
af91f3d5fc
1 changed files with 2 additions and 0 deletions
|
|
@ -4,11 +4,13 @@ import { getToken } from "next-auth/jwt";
|
|||
const publicPaths = [
|
||||
"/login",
|
||||
"/signup",
|
||||
"/invite",
|
||||
"/setup",
|
||||
"/api/auth",
|
||||
"/api/health",
|
||||
"/api/setup",
|
||||
"/api/onboarding",
|
||||
"/api/invitations/verify",
|
||||
"/api/jobs/process",
|
||||
"/api/email-watch/poll",
|
||||
"/api/ftp-watch/poll",
|
||||
|
|
|
|||
Loading…
Reference in a new issue