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

Error when using oauth with provider linkedin_oidc - Error getting user profile from external provider #351

Closed
omerhochman opened this issue Apr 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@omerhochman
Copy link

Version

@nuxtjs/supabase: v1.2.0
nuxt: v3.6.5

When using signInWithOAuth with linkedin_oidc

const client = useSupabaseClient()
const result = await client.auth.signInWithOAuth({
    provider: 'linkedin_oidc',
    options: {
        redirectTo: '...'
    }
})

It redirects back to the redirectTo URL with the following query params:
error=server_error&error_code=500&error_description=Error+getting+user+profile+from+external+provider#error=server_error&error_code=500&error_description=Error+getting+user+profile+from+external+provider

When checking the Auth logs in the Supabase platform I found this error:
error: oidc: id token issued by a different provider, expected \"https://www.linkedin.com\" got \"https://www.linkedin.com/oauth\"","level":"error","method":"GET","msg":"500: Error getting user profile from external provider

@omerhochman omerhochman added the bug Something isn't working label Apr 14, 2024
@omerhochman
Copy link
Author

I found supabase/auth repo to be the more relevant place for this issue so I've opened the same one there.

@Drew-Macgibbon
Copy link

I was facing the same issue with 1.20, seems to be working fine with 1.21 , must have been fixed upstream.

@larbish larbish closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants