hackforla / HomeUniteUs

We're working with community non-profits who have a Host Home or empty bedrooms initiative to develop a workflow management tool to make the process scalable (across all providers), reduce institutional bias, and effectively capture data.
https://homeunite.us/
GNU General Public License v2.0
35 stars 21 forks source link

Retrieve first and last name when signing up with Google #681

Closed erikguntner closed 3 days ago

erikguntner commented 3 weeks ago

Closes #680

This PR allows us to collect the first and last names of users who sign up with Google. While implementing this I found some bugs while working in a "staging" environment using the real AWS user pool. Some fixes are included.

What changes did you make?

Screenshot 2024-04-17 at 3 05 47 PM

Turns out you have to use the user's username/uuid to create the secret hash when using the "REFRESH_TOKEN" auth flow instead of the email. This problem is outlined in this GitHub issue on the boto3 issues page, and the solution came from this stack overflow issue.

Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)

Visuals before changes are applied ![image](Paste_Your_Image_Link_Here_After_Attaching_Files)
Visuals after changes are applied ![image](Paste_Your_Image_Link_Here_After_Attaching_Files)