You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to persist token information to a database so that the system can connect on the user's behalf. The token includes scope for offline_access. In the callback page...
constclient=awaitsmart(req,res).ready();consttokenResponse=client.getState("tokenResponse");// Save tokenResponse to database
Then on another page...
// Load tokenResponse from databaseconstoptions: fhirclient.ClientState={serverUrl: "https://somefhirserver.com/fhir",
tokenResponse,};constclient=smart(req,res).client(options);
But this results in Error: Unable to refresh. No tokenUri found. First, why is it trying to refresh if the original tokenResponse was generated within the 3600 second timeframe? I can see that fhirclient checks session for SMART_KEY, then uses that name to get another object that includes tokenResponse. Maybe I need to store the entire object (the one has tokenResponse and other properties like redirectUri) and pass that as options.
The text was updated successfully, but these errors were encountered:
I am trying to persist token information to a database so that the system can connect on the user's behalf. The token includes scope for
offline_access
. In the callback page...Then on another page...
But this results in
Error: Unable to refresh. No tokenUri found.
First, why is it trying to refresh if the originaltokenResponse
was generated within the 3600 second timeframe? I can see thatfhirclient
checks session forSMART_KEY
, then uses that name to get another object that includestokenResponse
. Maybe I need to store the entire object (the one hastokenResponse
and other properties likeredirectUri
) and pass that asoptions
.The text was updated successfully, but these errors were encountered: