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 Flow #4

Open
HarshGurnani opened this issue Jan 14, 2025 · 0 comments
Open

Login Flow #4

HarshGurnani opened this issue Jan 14, 2025 · 0 comments
Assignees

Comments

@HarshGurnani
Copy link
Collaborator

HarshGurnani commented Jan 14, 2025

Task

  • Render the login page according to the Figma design (the first three screens labeled for login).
  • When the user enters an email and password into the login page and clicks the Login button, the frontend should sign them in using Firebase
    • Proof of Concept: Call the Firebase API to sign in using the PAP dev email account (credentials in .env file) and receive an auth token (JWT)
    • Verify the auth token and determine the identity of the user who signed in
  • After the user is signed into Firebase, the Firebase API will give them an auth token (JWT). The frontend will then send that auth token on future requests to our backend as a header, so our backend knows who they are. For now, just make sure this token is being received.

Extra Notes:

  • Make sure to include the loading screen in between login and login successful pages (see Figma)
  • Also, make sure that after closing the app and reopening it, the user is still logged in
  • For now, you can test that it works correctly by making the home page just route to the login page, and once login is successful go to a dummy page that says “login successful!”
  • The big gray circle is supposed to be a logo, for now just upload a gray image and call it "logo.png" or "logo.jpeg", later we'll change it to the actual logo when we get it from the client.

Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants