-
-
Notifications
You must be signed in to change notification settings - Fork 425
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
"Uncaught TypeError: Cannot destructure property 'name' of 'response.profileObj" - Solution #21
Comments
thanks a bunch broooo |
Amazing solution. Thanks a ton! |
use googleLogout instead of "GoogleLogout" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solution for errors such as: "Uncaught TypeError: Cannot destructure property 'name' of 'response.profileObj' as it is undefined."
and sanity database not updating or redirects to home failing.
Here's how I solved it:
npm install @react-oauth/google
and get your client ID as shown in JSM's video.npm install jwt-decode
. This is to decode the jwt_token that the google oauth returns.Side Note: Don't forget to wrap your env variables in this:
{`${MY-ENV-VARIABLE}`}
Also, this solves the problem for these two components (login and home), but for the other components, some changes will have to be made. I will post these changes as soon as I am done with the project.
The text was updated successfully, but these errors were encountered: