ReneReid / Internify

3 stars 0 forks source link

[IN-69] Create User and POST to back-end when user logins #47

Closed tommytwm closed 3 years ago

tommytwm commented 3 years ago

User Story

[IN-69] Nice

Changes made

TLDR: Logging in from either Landing or Login page makes call to back-end

Does your new code introduce new warnings on dev console?

No

Test Steps

  1. Log in with Google from the Landing page
  2. Open the dev console and check the redux tab, you should see the current user updated in the user state
  3. Open MongoDB Compass (or any other MongoDB UI) and connect to our db
  4. You should see the new User object in our userdatas collection
  5. Sign out
  6. Log in with Google from the Login page
  7. Open the dev console and check the redux tab, you should see the current user updated in the user state
  8. Repeat steps 1 to 7 with sign in with email