Here is what I see if I run an app that has scopes "openid profile":
{
"access_token":"...",
"token_type":"Bearer",
"expires_in":86399,
"scope":"smart/orchestrate_launch openid user/*.* profile",
"id_token":"eyJraWQiOiJyc2ExIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ0cmF2aXN0Y3VtbWluZ3NAeWFob28uY29tIiwiYXVkIjoic2FuZF9tYW4iLCJvcmdhbml6YXRpb25OYW1lIjoiVUJobnBDY3UwcTA2a0Y4TEo5endmdEd5cnBxRXVjMEYiLCJkaXNwbGF5TmFtZSI6IlRyYXZpcyBDdW1taW5ncyIsInByb2ZpbGUiOiJEWU12bWh5VXpzOUcwNHA1YmMwbiIsImtpZCI6InJzYTEiLCJpc3MiOiJodHRwczpcL1wvc2ItYXV0aC5zbWFydGhlYWx0aGl0Lm9yZyIsImV4cCI6MTUwNTk3MDgzNCwiaWF0IjoxNTA1OTcwMjM0LCJlbWFpbCI6bnVsbH0.R34wwatbJOsvFdkGUuiL_AmSFLjjdBEqK3rTJH4IsZuS-StJQCylMYHLiKMCIUA9yFPIzbRoEeLvlJnJWMXApwJ6rbeFPdKWljdZ7YdfSrknhkQc5hX535KPwtP3-g41C_m-DLm6kYF3zNoNHJe6rWx6uJgTr01RCH22TOm421vnuH8o2H9iUHlCXQBRZx-0GL_e0HXRCNl5E8ju9Fp6AGEXmvCxAsZraCzsCtVGR33EJMIjd99issm7LKYsVpgfhkK76QzkxTSTeC0AuH6vqr8X-tYx8NBVUpfncaNtIItnVMR_1VPVkvcjWQn4ArZNNPrpdRnv2Q9uEWcaTWNH3w"}
{
"sub": "kathy1@smartdstu2",
"aud": "hspc_appointments",
"organizationName": null,
"displayName": "Kathy Fielding, MD",
"profile": "Practitioner/COREPRACTITIONER4",
"kid": "rsa1",
"exp": 1505970921,
"iat": 1505970321,
"email": "kathy1@smartdstu2"
}
It appears that the fhir_client.js correctly assigns this value to the user property on read.
Can you please let me know what version of the fhir_client.js you are using?
Can you explain your launch scenario further, possibly sharing with me your app registration information so I can debug the launch?
Thanks,
Travis