konnectors/libs

yarn dev : better handling of expired token or token associated to another cozy

Opened this issue · 2 comments

In this case we should remove the token and try to recreate it.

IMHO, all the necessary info to connect to a particular cozy should be kept in a single file.

Here we have pieces of informations in 3 places :

  • .token.json
  • .account
  • konnector-dev-config.json

Merging them into a single file would lead to simpler dev experience IMHO.

Right, except the .account file is not needed anymore since e1608d5

But yes, the token could be memorized in konnector-dev-config.json for example