-
-
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
After login with google Id , its not redirecting to home. #32
Comments
check the link you provided in Authorized JavaScript origins in Console.cloud.google.com it should be http://localhost:3000 |
! |
have you add url2 also? |
I got the same problem can you help me to figure it outLogin.jsximport React from "react"; // import { useGoogleLogin } from "@react-oauth/google"; import { GoogleLogin, googleLogout } from "@react-oauth/google"; import { useNavigate } from "react-router-dom"; // import { FcGoogle } from "react-icons/fc"; import shareVideo from "../assets/share.mp4"; import logo from "../assets/logo.png"; import jwt_decode from "jwt-decode"; import { client } from "../client"; const Login = () => { const responseGoogle = async (response) => {
}; const user = false; return ( ); }; export default Login; client.jsimport sanityClient from "@sanity/client"; import imageUrlBuilder from "@sanity/image-url"; export const client = sanityClient({ const builder = imageUrlBuilder(client); export const urlFor = (source) => builder.image(source); |
I solved it by changing sanity API token DEPLOY STUDIO to EDITOR |
After login through pop up, it's not redirecting to home page. There's no error showing up too, so I got no idea what went wrong. Please help asap!!!
The text was updated successfully, but these errors were encountered: