Replies: 2 comments 9 replies
-
I am not following -- as documented here, when you post the token you are required to send the That |
Beta Was this translation helpful? Give feedback.
-
Yes exactly. In this call here, get_provider is called without providing the
OR if I don't do this, it also works if I remove my other 2 apps in the settings. Which as I said, ended up being unnecessary anyway so I think this is an edge case, i don't know if any apps have a legitimate reason to have more than one app of the same provider. If you're still not following, I suggest you reproduce the issue by adding a second app of the same provider, for example google, and try to create an account. I predict you will always get an invalid token response, even if you provide the same legitimate credentials for the same google APP twice. |
Beta Was this translation helpful? Give feedback.
-
I might have found a little bug with headless google login, or not? You tell me.
A few days ago I was trying to implement login with google provider for the first time with a headless app (react native). I kept getting a generic error (I think “invalid token” but I forgot) and after lots of debugging I found that the reason is because I had more than one google app in my settings (
SOCIALACCOUNT_PROVIDERS['google']['APPS']
) and when get_provider is called from SocialAccount here, the client_id is not provided. The client_id is accessible in the request, but get_provider doesn't check for it. I found this could be solved in either of 2 ways:Is this a bug? Should I prepare a PR to check the request for client_id if it's not provided?
Beta Was this translation helpful? Give feedback.
All reactions