Hi all,
In my call to the userinfo endpoint I get profile information, including a flag “email_verified” which I’m checking in my app. Docs say that “email_verified” is a boolean. User Profile Structure
I can see that it’a a boolean when I use the username/password from a database - looking good:
{
"sub": "auth0|5d2xxxxxxxxx",
"nickname": "foo.bar",
"name": "foobar@example.com",
"picture": "https://s.gravatar.com/avatar/blah.png",
"updated_at": "2019-07-06T09:32:07.441Z",
"email": "foobar@example.com",
"email_verified": true
}
I’ve enabled the PayPal social login. For those identities I see “email_verified” is a string, which is in conflict with the documentation.
{
"sub": "paypal|HJKf4sxxxxxxxxxxxxxxxxxxxxxx",
"nickname": "paypal",
"name": "Foo Bar",
"picture": "https://s.gravatar.com/avatar/blah.png",
"updated_at": "2019-07-06T09:35:29.839Z",
"email": "foobar@example.com",
"email_verified": "true"
}
I’ve had to work around this in my code because my JSON parser throws a wobbly when it encounters a string in a boolean field. Is it fair to assume it’s a bug?