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

Expand user model and start getting user details from login token #793

Merged
merged 5 commits into from
Feb 12, 2024

Conversation

anarute
Copy link
Member

@anarute anarute commented Feb 9, 2024

  • Add 4 new fields to the user model: first name, last name, is_active and email.
  • Start fetching these details from the user token and store them in the db
  • Update user details in case name or email don't match

It will be used anytime we need to fetch
user details, so better to move it to a class
so it can be reusable.
Keep the user details (name and email) in sync
with the values from the oauth.
Copy link
Collaborator

@dmtrek14 dmtrek14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good here!

@anarute anarute merged commit bdff141 into main Feb 12, 2024
2 checks passed
@anarute anarute deleted the user-full-name branch February 12, 2024 09:46
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

Successfully merging this pull request may close these issues.

2 participants