liamcurry/passport-steam

Persistent state though sessions/cookies

Bartozzz opened this issue · 1 comments

Passport Steam forces the strategy to be stateless. I wonder if there's a way to save persistent data (for example. though sessions/cookies/state)?

I need to save a token from the user before he requests authorization, and return it to him after the authorization has succeeded. I've already tried to save it in sessions, cookies, but its look like those are overwritten in the auth/steam/callback and I can't acces those no more.

Persisting session state is outside the remit of this package. It is down to you, the developer, to manage user state.

Here's some resources to assist what you're tring to do.
https://stackoverflow.com/questions/5522020/how-do-sessions-work-in-express-js-with-node-js
https://codeforgeek.com/2015/07/using-redis-to-handle-session-in-node-js/