April 2020
Intermediate to advanced
292 pages
6h 50m
English
With all the bricks in place, we can add the authenticate Application. Node.js has good authentication libraries, such as Passport,[54] but we’re not going to use them. Using one could be the topic of its own dedicated tutorial, and we want to keep the focus on microservices here.
In any case, let’s dive into the authenticate Application. It needs to do three main things:
As always, let’s start with the top-level function:
| | function build ({ db, messageStore }) { |
| | const queries = createQueries({ db }) |
| | const actions = createActions({ messageStore, queries }) |
| | const handlers = createHandlers({ actions }) |
| |
Read now
Unlock full access