KindeK
Kinde2y ago
6 replies
ryno1234.

ext_provider claim not present in some cases

(Related to 💻┃supportpicture / ext_provider claim inconsistent)

There are instances where the ext_provider claim is not provided in the ID token.

The ext_provider claim isn't returned if the user had already signed in previously and is still considered logged in from Kinde's perspective.

So, for example:
- I click the "Sign In" button on my website
- I'm directed to Kinde.
- I choose to login with Facebook.
- I'm successfully logged in, and ext_provider claim is available in the ID Token.
- If, however, I clear my cookies on my site, my user would appear as not logged in.
- I would then click the "Sign In" button on my website
- I would be directed to Kinde and Kinde would see I was logged in (because Kinde's cookies still exist)
- I would be redirected to my site and successfully logged in, however this time there is no ext_provider claim.

This is a problem because I need to know who authenticated the user (Google, Facebook, etc.) so I can indicate what the user account type is in our system.
Was this page helpful?