Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login / signup screen #5

Open
gammons opened this issue Jun 1, 2020 · 0 comments
Open

Login / signup screen #5

gammons opened this issue Jun 1, 2020 · 0 comments
Labels
Large larger tasks

Comments

@gammons
Copy link

gammons commented Jun 1, 2020

We'll need to think about:

  • SSO with Github + google
  • Storing the user info
  • Storing todolists locally on phone

On the web view, the login workflow looks like this:

  1. Upon successful SSO, the backend will redirect the user to the auth page. The backend will provide a token param, which is a valid JWT that the frontend can use to make further calls.
  2. The auth page makes a call to the user endpoint to get information about the currently logged in user, and stores it inUserStorage.
  3. The page then redirects to the loading page, which makes a call to the todolists endpoint, which retrieves all todolists owned by the user. These lists are stored via TodoListStorage.
  4. The user is finally redirected to /todolist which will show the most recently used (or first) todo list.
@gammons gammons added the Large larger tasks label Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Large larger tasks
Projects
None yet
Development

No branches or pull requests

1 participant