directus / v8-archive

Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
https://docs.directus.io/api/reference.html
505 stars 204 forks source link

Cache login issue #1666

Open AlbertoAbruzzo opened 4 years ago

AlbertoAbruzzo commented 4 years ago

Steps to Reproduce

  1. Activate cache (redis for example)
  2. Login for the first time
  3. When the token expire you'll be redirected to login page again
  4. Try to login (with or without 2FA) and you get an error "Couldn't Reach API" but if you see the response from api the json is ok

Expected Behavior

We should not cache /auth/authenticate routes

Actual Behavior

Couldn't Reach API in front-end

nachogarcia commented 4 years ago

This is already opened in https://github.com/directus/api/issues/1476 and a couple more of threads that got merged there.

Still a big issue for us. In the meantime we keep cleaning the cache manually in each login which, to be honest, sucks :sweat_smile: