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 π€
![No description](https://cdn.answeroverflow.com/1260865626939850792/Screenshot_2024-07-11_094717.png)
![No description](https://cdn.answeroverflow.com/1260865627271467120/Screenshot_2024-07-11_094658.png)
5 Replies
Didnt look at the docs, but ur using OTP (one time pass) instead of oAuth
![No description](https://cdn.answeroverflow.com/1260882777599901787/SmartSelect_20240711_105753_GitHub.jpg)
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 π