Nuxt X Supabase Oauth with Github
Hello everyone
I try to allow my users to connect to my app with github but it doesn't work.
I created a github app. I enable Github provider in supabase (with my client ID ...)
I followed the documentation, so what am I doing wrong ?
Thanks in advance π€
5 Replies
Didnt look at the docs, but ur using OTP (one time pass) instead of oAuth
oops I should read more carefully.
Now when I click on my button I am redirected to my "confirm" page with this url http://localhost:3000/confirm?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST+match+the+registered+callback+URL+for+this+application.&error_uri=https://docs.github.com/apps/managing-oauth-apps/troubleshooting-authorization-request-errors/%23redirect-uri-mismatch&state=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MjA2ODkwMjUsInNpdGVfdXJsIjoiaHR0cDovL2xvY2FsaG9zdDozMDAwL2NvbmZpcm0iLCJpZCI6IjAwMDAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMCIsImZ1bmN0aW9uX2hvb2tzIjpudWxsLCJwcm92aWRlciI6ImdpdGh1YiIsInJlZmVycmVyIjoiaHR0cDovL2xvY2FsaG9zdDozMDAwL2NvbmZpcm0iLCJmbG93X3N0YXRlX2lkIjoiZjdhZjMxM2UtNjdjMi00OTZlLWEwMTMtNWZmNDU5ZjdiZmI1In0.V-SP1cIpkOSFXz21BT3Jilu2W-z7KbPPjys67T5KuM0
I don't understand because my url callback is http://localhost:3000/confirm. Should my callback url be this?
You need to register your callback url in supabase under redirects
Thanks π