opatry / taskfolio

An Android task management app built using Google Tasks API. Developed to demonstrate my expertise in modern Android development.
https://opatry.github.io/taskfolio/
MIT License
2 stars 0 forks source link

First authentication isn't taken into account, need to kill, restart, and authorize again #34

Open opatry opened 1 week ago

opatry commented 1 week ago

Describe the bug In fresh install setup, skipping the onboarding, then authorizing the app won't raise any error but the user profile picture & user tasks won't show up. After a kill & restart and authorizing again, it works.

To Reproduce Steps to reproduce the behavior:

  1. fresh install
  2. skip onboarding (mandatory? does it reproduces with authorize from onboarding?)
  3. create task list & task (linked to the scenario issue?)
  4. authorize & consent scopes
  5. here, user won't be signed-in

Expected behavior Once consent is provided, the user profile picture should show up and the remote tasks (if any) displayed.

[!TIP] It appears to be an Android only issue

opatry commented 1 week ago

Reproduced on desktop.

Seems to work fine from onboarding (at least, tested on desktop version)

opatry commented 1 week ago

Might be a timing issue, sometimes it works. Maybe the moment between the credentials storage and the user fetch doesn't allow ktor to properly setup authentication?