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

Improve session initialisation on app load/user auth #72

Closed daneden closed 2 years ago

daneden commented 2 years ago

Two seemingly related issues:

  1. When first authenticating a user, the callback URL doesn't seem to actually initialise a session, causing the login screen not to dismiss. The only workaround is to quit the app and open it again.
  2. Sometimes even though accounts are authorised, the app opens to a login screen. The same workaround as above fixes the issue.

This is likely a race condition or state discrepancy after the authenticated accounts have been decoded.