0

I'm building a SPA (single page application) and I have multiple parallel javascript requests to my server.

I'm also using the amazing https://github.com/volatiletech/authboss and it's Remember me module which I think has an "issue": is not a bug, is not a problem, is a missing feature!

DESCRIPTION

Let's say I have a rm (remember me) cookie saved in my browser along with the session one.

If the session cookie expires and my SPA sends multiple requests to my server with rm cookie only the first one is correctly authenticated.

The second one (and so on) can't find anymore it's token in the storer (deleted before in the first request flow).

ALGORITHM

I'm using the same algorithm you can find in authboss-sample: https://github.com/volatiletech/authboss-sample/blob/master/storer.go#L333-L352.

RELATED QUESTIONS

QUESTION

As you can see this is not strictly a problem with authboss.

What can we suggest to the world?

Can we solve it somehow?

Fred Hors
  • 3,258
  • 3
  • 25
  • 71
  • When does this `rm` cookie expire? – Phenomenal One Feb 01 '20 at 18:36
  • Read here: https://stackoverflow.com/questions/5948918/race-condition-for-persistent-remember-me-cookies. Remember me tokens need to be deleted after each use. – Fred Hors Feb 01 '20 at 21:51
  • Does this answer your question? [Race Condition for Persistent "Remember Me" Cookies](https://stackoverflow.com/questions/5948918/race-condition-for-persistent-remember-me-cookies) – Christian Davén Jun 23 '20 at 10:08

0 Answers0