A number of examples of NestJS authentication. I will add to this over time.
From each example directory, run NPM install:
npm i
And start the NestJS application:
npm start
Each of the examples can be accessed by http://localhost:3000 from your HTTP client.
Tests are implemented. E2E tests are encouraged:
npm run test:e2e
Here's the examples in this repo:
A very basic example of a Basic Auth implementation in a NestJS REST API.
You can view a basic auth tutorial on my website.
A very basic example of a Header Api Key implementation in a NestJS REST API.