Django-React-GoogleOauth2-Example
Django-React-GoogleOauth2-Example copied to clipboard
Google OAuth2 sign-in flow using Django (+ REST Framework) and React.
Django-React-GoogleOauth2-Example/server/auth/apis.py", line 26, in post user = serializer.object.get('user') or request.user AttributeError: 'JSONWebTokenSerializer' object has no attribute 'object'
- Renamed `givenName` and `familyName` variables to `given_name` and `family_name` to ensure `profile_data` is properly obtained from `user_data` as the user info endpoint (https://www.googleapis.com/oauth2/v3/userinfo)returns `given_name` and `family_name` instead of the...