THIS INFORMATION IS WRONG
It will if you make the correct claims under openID auth
You don’t need to do that. Please refer to the claims section of OIDC
I construct the following URL to redirect people to:
var url = oidc_data.authorization_endpoint
+ '?client_id=' + client
+ '&redirect_uri=' + redirect
+ '&response_type=code'
+ '&force_verify=true'
+ '&scope=openid'
+ '&state=' + encodeURIComponent(req.session.state)
+ '&claims=' + JSON.stringify({
userinfo: {
email:null,
email_verified:null,
picture:null,
preferred_username:null
}
});
Where oidc_data
is fetched from https://id.twitch.tv/oauth2/.well-known/openid-configuration
Making a call to oidc_data.userinfo_endpoint
I get: