Skip to content
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

I get this error and I am having trouble with signing in with google #23

Open
eng-Arnold07 opened this issue Oct 2, 2023 · 4 comments

Comments

@eng-Arnold07
Copy link

img 1

everything is set but the error persists and i can login a user.

@karshdev
Copy link

karshdev commented Oct 4, 2023

check your google cloud and url is http://localhost:3000/api/auth/callback/google
check if its right

@eng-Arnold07
Copy link
Author

Screenshot 2023-10-05 at 15 41 21

this is the type error i am getting in my terminal. i have failed to find a way to fix it. i think its the one causing the causing the console error and failure to login a user. i have checked and rechecked the login file and the providers and everything seems to be in place. please help. here is the link to my repository: https://github.com/eng-Arnold07/blogging-app

@eng-Arnold07
Copy link
Author

the google cloud url is set correctly and the error still persists

@0xrishavsharma
Copy link

@eng-Arnold07 I hope you have solved this issue. I was also stuck with the same problem. I have solved mine, posting the solution here so you or other can learn from my mistake.

I folder structure was incorrect, I mistakenly created the api folder directly inside src instead of creating it inside app folder. This is how the folder structure should look like:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants