This repository has been archived by the owner on Jul 15, 2020. It is now read-only.
Authentication is now handled by the next-auth library.
All authentication code - including express and passport integration - has been forked off into this npm module making it easier to manage and providing complete separation of auth configuration and database code.
- next-auth.config.js <- Basic configuration
- next-auth.functions.js <- CRUD methods for user management and email sending function
- next-auth.providers.js <- oAoth provider configuration
The session handling code is now provided by next-auth-client.
While authentication is still more complicated to add to a new project than is ideal, future updates to next-auth may provide easier interfaces to do this in future.