Local auth was using getLocalAuthToken() which only checks in-memory and sessionStorage — both unavailable during SSR. The env token (NEXT_PUBLIC_LOCAL_AUTH_TOKEN) was defined but never called in the auth flow. Now useAuth, hasLocalAuthToken, and customFetch all fall back to getEnvToken() so SSR correctly identifies the local user as signed in and admin. |
||
|---|---|---|
| .. | ||
| clerk.tsx | ||
| clerkKey.ts | ||
| localAuth.ts | ||
| mode.ts | ||
| redirects.test.ts | ||
| redirects.ts | ||