luomus / laji

Frontend for Finnish Biodiversity Information Facility (FinBIF) data portal laji.fi (and other *.laji.fi frontends)
MIT License
7 stars 0 forks source link

If person token is deleted by another service / manually, laji.fi enters an erroneous state #667

Open Blodir opened 2 weeks ago

Blodir commented 2 weeks ago

Repro:

  1. Log in to dev.laji.fi
  2. Grab the person token from the network tab/localstorage
  3. Send DELETE to dev.laji.fi/api/person-token/
  4. Refresh page, then try to open your profile in dev.laji.fi

This came up when testing logout in laji-dmp frontend.

Blodir commented 2 weeks ago

May be an API issue actually, I got to a state where /person/<id> endpoint responded with the same person for two different tokens 🤔 And the first of the tokens can't be deleted (since it has been already deleted)... Requires investigation