Open Achilleaus opened 2 years ago
Hello bro , i've implemented this code but am still getting this error can you please help me with it
Failed to load resource: the server responded with a status of 400
thanks a bunch broooo
Amazing solution. Thanks a ton!
help guys!!
use googleLogout instead of "GoogleLogout"
Hey, I tried your solution but I am getting this error. Can you just help me with it, Thank you .
Hey, I tried your solution but I am getting this error. Can you just help me with it, Thank you .
change to
import { jwtDecode } from "jwt-decode";
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.