Skip to content

Vercel log-in works but after signIn an error appears #723

Answered by MerleMak
jonas8900 asked this question in Web
Discussion options

You must be logged in to vote

The problem is the callBackURL in the StyledLogin Button. I should be:

<StyledLoginButton
          onClick={() => {
            signIn("google", {
              callbackUrl: "https://capstone-project-git-add-user-login-jonas8900.vercel.app/validateafterlogin",
            });
          }}
        >
          Login
          </StyledLoginButton> 

Extra tipp: You can change your domain on vercel so something like https://friends.vercel.app
(if that is not already taken :D)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Kheirah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Web
Labels
None yet
2 participants