Jul 17, 2021
Hi Bob, really glad you liked the article! Just took a look at your code - if it didn't throw an error it likely worked, but you won't be able to print out the contents of the keystore directly. You will need to either retrieve the keys from the keystore first using keystore.get(kid) or keystore.all() or export the keystore to a JSON object using keystore.toJSON(). Hope that helps!
A great place to discuss processing SMART health cards is the #smart/health-cards channel on chat.fhir.org!