Use of headers() in next 15 give a error:
[ Server ] Error: Route "/private" used
headers().get('X-FiefAuth-Access-Token-Info').
headers() should be awaited before using its value. Learn more: https://nextjs.org/docs/messages/sync-dynamic-apis
Follow the integrate guide in https://docs.fief.dev/integrate/javascript/ssr/nextjs-app/
JavaScript environment: NextJs 15, pnpm, TS
Fief client version: npm @/fief latest
Fief Cloud or self-hosted: self-hosted
If self-hosted, Fief version: ghcr.io/fief-dev/fief:latest
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too