-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple sessions #13
Simple sessions #13
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13 +/- ##
==========================================
+ Coverage 98.41% 99.23% +0.82%
==========================================
Files 6 7 +1
Lines 63 131 +68
==========================================
+ Hits 62 130 +68
Misses 1 1
Continue to review full report at Codecov.
|
@KarolJastrzebski can you make codecov use the |
|
||
const app = express(); | ||
|
||
const baseUrl = `http://localhost:${config.port}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps pull domain from config also?
This PR adds simple session management using express session, with some extra functionality implemented by shimming the functions on the
req.session
andreq.sessionStore
.Goals for sessions:
req.session.generate()
req.session.active()