I need to include the username field from the user in the ID token. I believe I need to set up a rule for this. I found an example on line;-
function (user, context, callback) {
context.idToken[‘https://[my-tenant-domain]/username’] = user.username;
return callback(null, user, context);
}
But this seems to have no effect. Can this be done?
Thanks