smart-on-fhir / Swift-SMART

Swift SMART on FHIR framework for iOS and OS X
Other
135 stars 47 forks source link

Refresh token #25

Closed Fedenieto90 closed 6 years ago

Fedenieto90 commented 6 years ago

Hi, I'm working on a Practitioner facing app for iOS. The problem is that after 10 minutes, the requests start failing because of authentication. Is there a way to refresh the access token?

Thanks in advance! Fede.

p2 commented 6 years ago

You can call smart.authorize() again, which should use the refresh token if one is present. See OAuth2's documentation for details.