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: Authenticate user with our Database, Grab identity, LOGOUT #35

Open
Miyuki-L opened this issue Jan 15, 2025 · 0 comments
Open

Login: Authenticate user with our Database, Grab identity, LOGOUT #35

Miyuki-L opened this issue Jan 15, 2025 · 0 comments

Comments

@Miyuki-L
Copy link
Member

Miyuki-L commented Jan 15, 2025

  • At login once we firbase autth returns token send to our backend to make sure that they are an authenticate user
  • Get the user Identity from the backend by graphhing user data from the database (we will then load the userContext once we have that created separate tasks)
  • log user out
  • may need route to create route to authenticate the user
  • API calls to the backend

Resource:
https://github.com/TritonSE/PIA-Program-Manager/blob/e59620c72cb8a77f7d8ad49ad5392fc6bf9b1431/frontend/src/api/user.ts#L20
https://github.com/TritonSE/PAP-Inventory-Processing/blob/main/frontend/src/api/Users.ts

https://github.com/TritonSE/PIA-Program-Manager/blob/e59620c72cb8a77f7d8ad49ad5392fc6bf9b1431/frontend/src/api/user.ts

Put the frontend functions that call the api under frontend/src/api
See above resources and the onboarding note about it
https://github.com/TritonSE/PIA-Program-Manager/blob/e59620c72cb8a77f7d8ad49ad5392fc6bf9b1431/frontend/src/api/user.ts

Put the frontend functions that call the api under frontend/src/api
See above resources

Context related resource:
https://github.com/TritonSE/PAP-Inventory-Processing/blob/main/frontend/src/contexts/userContext.tsx

https://github.com/TritonSE/YSC-Mobile-Application/blob/main/mobile/src/contexts/AuthContext.tsx

@Miyuki-L Miyuki-L changed the title Authenticate user with our Database, Grab identity and load context Authenticate user with our Database, Grab identity and load context, LOGOUT Jan 15, 2025
@Miyuki-L Miyuki-L changed the title Authenticate user with our Database, Grab identity and load context, LOGOUT Login: Authenticate user with our Database, Grab identity and load context, LOGOUT Jan 16, 2025
@Miyuki-L Miyuki-L changed the title Login: Authenticate user with our Database, Grab identity and load context, LOGOUT Login: Authenticate user with our Database, Grab identity, LOGOUT Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants