sef-global / scholarx-backend

This is the backend of the ScholarX
MIT License
10 stars 38 forks source link

Google Login Issue with User's Family Name #128

Closed dsmabulage closed 2 months ago

dsmabulage commented 2 months ago

Description

Google login fails when the user does not have a familyName in their Google account.

Steps to Reproduce

  1. Attempt to log in using a Google account that does not have a familyName set.
  2. Observe that the login process fails.

Expected Behavior

The login should succeed regardless of whether the user's Google account has a last name set or not.

Current Behavior

The login process fails if the user's Google account does not have a last name set.

Attachments

image

Proposed Solution

Make the userProfile.last_name field nullable to allow users without a last name to log in successfully.

Implementation

Additional Information