debtcollective / parent

1 stars 0 forks source link

Login endpoint should always try to refresh the session with Discourse #241

Closed orlando closed 5 years ago

orlando commented 5 years ago

Right now if you have an active session in the tools app and you logout from Discourse, when you visit the tools and go to the /login route, it doesn't refresh the session and tries to uses the old one. This causes the header to go out of sync with the app.

To solve this, the /login endpoint in other apps should always refresh the session with Discourse, instead of returning if they already have a session.

To reproduce this issue do the following:

  1. Login in the tools app
  2. Go to the community and log out
  3. Go back to the tools and it won't let you log in again.

Tasks

Acceptance criteria