Skip to content
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

store the user in the session and expire after 1 min #110

Open
davehannon opened this issue Sep 22, 2017 · 0 comments
Open

store the user in the session and expire after 1 min #110

davehannon opened this issue Sep 22, 2017 · 0 comments

Comments

@davehannon
Copy link

davehannon commented Sep 22, 2017


opened via imdone.io from a code comment on c164f7cf26c639d4cc3e624dd661a9b182b791b3 by Jesse [email protected]


// TODO: store the user in the session and expire after 1 min id:9 gh:110
let userId = req.headers['dr-userid']
const sessionUser = _.get(req, 'session.user')
if (sessionUser && sessionUser.login === userId) {
req.user = req.session.user
// console.log('user:', req.user)

@davehannon davehannon changed the title store the user in the session and expire after 1 min store the user in the session and expire after 1 min Sep 28, 2018
@davehannon davehannon changed the title store the user in the session and expire after 1 min store the user in the session and expire after 1 min Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant