This is a simple example which uses LinkedIn's user authentication API to grant access to a user. It uses session cookies to manage the user's state.
- Node v16 or above.
.envfile in project directory (see.env.examplefor an example).- If you need OIDC credentials, see: https://learn.microsoft.com/en-us/linkedin/shared/authentication/client-credentials-flow
- PostgreSQL database for session state.
- Alternately, just use the default store instead which will store sessions in memory.
npm run devStart the server in watch mode.npm run startStart the server.