The JWT callback was optimized to only query the DB on sign-in or explicit session update, but the middleware reads the JWT cookie which was stale after org changes. Reverted to always refreshing org data in the JWT callback (matching original behavior). Also switched workspace- setup and onboarding completion to hard navigation to guarantee the middleware re-evaluates with the latest JWT cookie. Made-with: Cursor |
||
|---|---|---|
| .. | ||
| cards | ||
| events | ||
| onboarding | ||
| people | ||
| profile | ||
| reports | ||
| settings | ||
| layout.tsx | ||
| page.tsx | ||