I've got Okta SSO and a Auth Provider that generate tokens which works pretty well, except that after 1 hour the tokens start to expire. Rather than adding additional app logic to manage token refresh I was wondering if I can utilise Named Credential instead.
I am not sure how can I set it up correctly. It seems like Named Creds require the end user to sort of re-authorise itself for a second time, which is not something I wanna do.
I am using and maintaining a fork of Httpex for this, so if you've got ideas how to improve refresh flow - please commit there!