hi guys im trying to add github auth , I get this ...
# help
s
hi guys im trying to add github auth , I get this error
s
hi guys im trying to add github auth , I get this error
I think we require more context as to what you did in order to help with this error.
We would require more context as to why you did in order to help with this error
s
s
Can you provide example code of what you did?
s
Copy code
async function signInWithGithub() {
  const { user, session, error } = await supabase.auth.signIn({
    provider: 'github'
  });
}
a button click will run this function
s
And did you setup your app on GitHub?
s
yep
s
Along with the correct callback url?
s
ig so
https://.supabase.co/auth/v1/callback right?
s
Yes
So when you clicked the button that calls the function, did you get redirected to GitHub?
s
no it send the error ,which I sent earlier
s
So something is incorrect in your setup then, it’s hard for me to say because I can’t see your codebase
I would suggest going through the guide again and making sure all the steps were followed
Did you set the GitHub credentials inside the Supabase dashboard?
s
yes
i did :((
i tried entering the callback url manually but that gives the same error
s
I'm going to test it in one of my app now, give me a minute
s
oki
s
I just tested this and its working
Do you want to do a call/screenshare and I will see if I can help you debug it?
s
ohh , cant at the moment!
btw by any chance would webpack stop this from working?
s
No I doubt it would, those are just warnings too.
s
i'll try it on a new test project
s
I had to delete that because you were sharing your keys in it
The code looks correct though
Oh wait, those are public keys, sorry it was fine
s
yes im aware , its just for testing now lul
does entering the callback url in the url bar of browser run anything for you?
s
You shouldn't be entering that manually as I think its a POST request that is sent to it
Ok it gives me
Copy code
json
{"code":400,"msg":"OAuth state parameter missing"}
Is that the error you get when you enter it directly?
s
no gives me the same error
s
Ok let me try something and see if I can reproduce that error
Can you send me your callback url as a string here
s
Ok something must be wrong internally with that project, can you try setting up a new project and trying it again
s
oki
i get the same error with the new project, I give up :((
s
I can only think you aren't configuring something correctly
s
is this referring to the Authorization callback URL box?
s
yes
s
why does it tell that in the previous step too
s
Probably a mistake