Fix invitation flow by allowing unauthenticated tRPC requests
Build and Push Docker Image / build (push) Successful in 8m28s
Details
Build and Push Docker Image / build (push) Successful in 8m28s
Details
The middleware was blocking /api/trpc requests for unauthenticated users, which prevented the accept-invite page from calling the public validateInviteToken procedure. tRPC handles its own authentication via procedure middleware, so the NextAuth middleware should allow all tRPC requests through. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b0189cad92
commit
0f956cf23f
|
|
@ -45,6 +45,7 @@ export const authConfig: NextAuthConfig = {
|
||||||
'/accept-invite',
|
'/accept-invite',
|
||||||
'/apply',
|
'/apply',
|
||||||
'/api/auth',
|
'/api/auth',
|
||||||
|
'/api/trpc', // tRPC handles its own auth via procedures
|
||||||
]
|
]
|
||||||
|
|
||||||
// Check if it's a public path
|
// Check if it's a public path
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue