Skip to content

Refactor/nodejs express quickstart#21

Open
KMilej wants to merge 5 commits intomainfrom
refactor/nodejs-express-quickstart
Open

Refactor/nodejs express quickstart#21
KMilej wants to merge 5 commits intomainfrom
refactor/nodejs-express-quickstart

Conversation

@KMilej
Copy link
Copy Markdown

@KMilej KMilej commented Jan 21, 2026

Summary

  • Complete NodeJS Express demo API with Approov token verification and optional token binding.
  • Expose protected (/token-check, /token-binding, /token-double-binding) and unprotected endpoints.
  • Provide Docker run scripts, .env configuration, and a CLI test harness.
  • Locally, it uses npm install and npm start

How to run

  • Clone repo.
  • cp .env.example .env.
  • Set APPROOV_BASE64URL_SECRET.
  • approov api -add example.com
  • bash run_server.sh.
  • In another terminal: bash test.sh.

@KMilej KMilej force-pushed the refactor/nodejs-express-quickstart branch from a38ee1e to 9819ca8 Compare February 5, 2026 10:15
- add consistent auth error mapping and structured API error payloads

- validate APPROOV_BASE64URL_SECRET strictly and fail fast on invalid env setup

- align runtime defaults and developer workflow (HTTP_PORT, strict routes, watch mode)

- improve (.dockerignore, Dockerfile, README, LICENSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant