Repository: supabase/auth

Issue #1225: Login with linkedin not working `Unable to exchange external code`
Created: 2023-08-15T09:58:14Z
Bug report


 I confirm this is a bug with Supabase, not with my own application.
 I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
Linked with login not working.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

add secrets to initialize  client
Run the application and click on login with linkedin

Expected behavior
Should print detail of user on console.
System information

OS:Mac Os
Browser  Chrome

Additional context
I have used supabase client "@supabase/supabase-js": "^2.31.0", as a dependency and tried to login with linkedin. but after completing login process it will redirect me again in login screen. after debugging  found error=server_error&error_description=Unable+to+exchange+external+code%3A+AQQhjojAPKLH_qXa7lER3WXaXuC2YJw4oFDNNWDvjHBe3G0chE68H4ru5Z7Bo0P5qDg7WkY-XJcXOBJDYctFydyGiXvGT54_WhNTL00Mw7l1VIzFUtmeLhdfePPnFsL_bQujzz0cULxyNLn0ISihBmAJSFinab7ZK2VGD3tCuFlVx2vlzIaIZCuL5f78b10OW33XELo58mKBRcVRtPY this redirection.
I saw others issue on github. there is one or two issue related to  linkedin login. one is due to invalid secretkey/ space in secret key and another when there is no profile image on linkedin which was already solved. I checked the key and secret twice and also i have image on my linkedin profile.
Appears this is a gotrue error when trying to grab the oauth code from linked in.
https://github.com/supabase/gotrue/blob/master/internal/api/external_oauth.go#L80
Discord fourm: https://discord.com/channels/839993398554656828/1137991384616419338
Linkedin login simple implementation with react: git@github.com:aryanhimself/linkedinlogin-supabase.git

Duplicate issue #1215: Login with linkedin not working `Unable to exchange external code`
Created: 2023-08-10T07:07:43Z
Bug report


 I confirm this is a bug with Supabase, not with my own application.
 I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug
Linked with login not working.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:

add secrets to initialize  client
Run the application and click on login with linkedin

Expected behavior
Should print detail of user on console.
System information

OS:Mac Os
Browser  Chrome

Additional context
I have used supabase client "@supabase/supabase-js": "^2.31.0", as a dependency and tried to login with linkedin. but after completing login process it will redirect me again in login screen. after debugging  found error=server_error&error_description=Unable+to+exchange+external+code%3A+AQQhjojAPKLH_qXa7lER3WXaXuC2YJw4oFDNNWDvjHBe3G0chE68H4ru5Z7Bo0P5qDg7WkY-XJcXOBJDYctFydyGiXvGT54_WhNTL00Mw7l1VIzFUtmeLhdfePPnFsL_bQujzz0cULxyNLn0ISihBmAJSFinab7ZK2VGD3tCuFlVx2vlzIaIZCuL5f78b10OW33XELo58mKBRcVRtPY this redirection.
I saw others issue on github. there is one or two issue related to  linkedin login. one is due to invalid secretkey/ space in secret key and another when there is no profile image on linkedin which was already solved. I checked the key and secret twice and also i have image on my linkedin profile.
Appears this is a gotrue error when trying to grab the oauth code from linked in.
https://github.com/supabase/gotrue/blob/master/internal/api/external_oauth.go#L80
Discord fourm: https://discord.com/channels/839993398554656828/1137991384616419338
Linkedin login simple implementation with react: git@github.com:aryanhimself/linkedinlogin-supabase.git

Closing comment (2023-08-21T09:19:18Z): Duplicate of #1225