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 = [
|
const publicPaths = [
|
||||||
"/login",
|
"/login",
|
||||||
"/signup",
|
"/signup",
|
||||||
|
"/invite",
|
||||||
"/setup",
|
"/setup",
|
||||||
"/api/auth",
|
"/api/auth",
|
||||||
"/api/health",
|
"/api/health",
|
||||||
"/api/setup",
|
"/api/setup",
|
||||||
"/api/onboarding",
|
"/api/onboarding",
|
||||||
|
"/api/invitations/verify",
|
||||||
"/api/jobs/process",
|
"/api/jobs/process",
|
||||||
"/api/email-watch/poll",
|
"/api/email-watch/poll",
|
||||||
"/api/ftp-watch/poll",
|
"/api/ftp-watch/poll",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue