Hi,
I am not sure why checkSession() refuse to return any profile nickname. My code looks like this:
lock.checkSession({scope: ‘openid email nickname picture’}, function(err, authResult) {
if (authResult && authResult.accessToken && authResult.idToken) {
However, the authResult.profile is missing nickname even when the scope is defined correctly…
(Note: I have obfuscated specific numbers with “XXXX” to prevent any hacking…
I can see following returned in the authResult.profile
{sub: “auth0|XXXXXX”, email: “testuser1@XXXXX”, email_verified: false}
The full payload from idToken looks like:
{
“email”: “testuser1@XXXX”,
“email_verified”: false,
“iss”: “XXXXXX”,
“sub”: “XXXXXX”,
“aud”: “XXXXX”,
“iat”: 1538151354,
“exp”: 1538187354,
“at_hash”: “XXXXXXX”,
“nonce”: “XXXXXX”
}
I am using ver 11.9.1 lock library