daneden / Zeitgeist

👁 An iOS app for keeping an eye on your Vercel deployments
http://zeitgeist.daneden.me
Apache License 2.0
190 stars 7 forks source link

Handle duplicative account authorization #78

Closed daneden closed 2 years ago

daneden commented 2 years ago

Account handling happens in roughly the following order:

    1. Account A is authorised via Vercel’s OAuth flow
  1. A is locally stored
  2. User updates A details via Vercel’s website, resulting in ΔA
  3. Account ΔA is authorised via Vercel’s OAuth flow
  4. Both accounts A and ΔA are updated, resulting in the same account appearing twice

I should ensure that the authorisation step replaces any accounts with the same account ID.