User management
The session middleware provides mechanisms for adding session logic to your service, using e.g. a collection or JSON Web Tokens to store the sessions between requests.
The following example service demonstrates how user management can be implemented using these basic building blocks.
First add a setup script to your manifest if it isn’t already defined:
Creating the router
The following main file demonstrates basic user management: