Functions and HTTP middleware to check validity and retrieve session information that was populated from express-session.
If you use express-session in a NodeJS/express app to store session data, it's fine and dandy if all your APIs and services live in the same express app with all requests flowing through the express-session middleware. With this package, you can also build APIs and services in go and implement a similar HTTP middleware to retrieve and use session info as is being used in your express app.
See /examples
folder
- memory store is the default store, same as express-session (note: should not be used in production)
- redis store, same implementation as connect-redis in NodeJS
- Create example session store retrieval of session that can be used as
sessionParser
replacement
Special thanks to Chris Tomich and his blog post for helping get started on this project.