Contributing
Verify a change locally, and what to include in a report.
Examples of verifyUser for more auth providers are welcome. Show where the existing session or Bearer check is called, and when viaBearer is true.
Verify locally
npm ci
npm run prepare:types
npx tsc --noEmit
npm test
npm run build
BFF_TEST_DIST=1 npm test
The integration tests start a local HTTP server. If you change what happens on failed authentication, public routes or the same-origin rules, add or update a test that checks the real HTTP response. If you extend the supported Nuxt, Nitro, h3 or ofetch versions, list the combinations you tested.
Reporting a problem
Include the Node.js and dependency versions, the relevant bffGuard options, and the status you expected and got. Use dummy Cookies and tokens; never paste real credentials or user data.