This optional sponsor recipe shows a missing credential denied with 401, followed by an Auth0-authorized call that creates a local follow-up with 201. It checks JWT signature, issuer, audience, expiration, and create:followups scope. Records remain in memory until the server stops. Use it as an authorization reference alongside the starter app you choose from apps/.
Authentication, configuration, and the first working call →
This recipe demonstrates machine-to-machine authorization. The server checks the service identity and scope before creating a local record.
- server.mjs: token/scope validation and local record creation.
- client.mjs: unauthenticated request followed by an authorized request.
- test.mjs: local OIDC/JWKS fixture and real JWT middleware checks.
npm ci --prefix dev-docs/auth0
npm test --prefix dev-docs/auth0Run from the repository root. Tests need no credentials. Live access requires the Auth0 configuration in the consolidated guide.