question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Session save does not support a callback url

See original GitHub issue

Cookie session does not implement the documented interface for express session save. As you can see here : https://github.com/expressjs/session/blob/8e57b21bef0d53010c4d37f4beee3f0341f3eaa6/session/session.js#L71

and per the documentation here: https://github.com/expressjs/session#sessionsavecallback

Save should take an optional callback method. The background is i’m trying to implement this fix: https://github.com/jaredhanson/passport/issues/482#issuecomment-230594566 But I can’t since there is no callback url

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dougwilsoncommented, Sep 25, 2018

It probably doesn’t matter at this point, as the 1.x series is about to be deprecated with the release of 2.0.

0reactions
dougwilsoncommented, Jan 6, 2020

Sorry I didn’t get to doing this. No PR came up either, and as I was about to do this, I noticed that save was never a documented method and the JSDoc marks it as a private API, so probably best just to actually remove the ability for users to call it at all from 2.0 to prevent confusion. Calling .save() just generates a cookie value and is a sync action, so has no purpose in this module.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I store a value in session that has to be later accessed ...
You just need to make sure that the callback request instructs the server somehow to use the same session as the initial request....
Read more >
auth0 url
Auth0 will not accept the default certificate in the SAML Find top links about ... This corresponds to an Auth0 callback URL: To...
Read more >
Authorizing requests - Postman Learning Center
To use authorization code grant type, enter a Callback URL for your client application (which needs to be registered with the API provider),...
Read more >
AuthSession - Expo Documentation
The Expo Auth service saves away the returnUrl (and if it is not a published URL or your registered custom theme, shows a...
Read more >
Window.sessionStorage - Web APIs - MDN Web Docs
The read-only sessionStorage property accesses a session Storage object for the current origin. sessionStorage is similar to localStorage; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found