How to keep Access token valid from refresh token

Hi

David Millington replied on my post on FaceBook how to keep access token alive and avoid user login again.

I haven’t used this, but this sort of system usually comes with a “refresh token” as well, which you use when the existing token has expired to get a new one without the full authentication process (user never sees it.) it’s secure, robust, and invisible to the user.

Check if that’s available for Azure, and if the TMS control implements it. If not then ping TMS and ask, they might add it!

So I am confused. I understand the access token last about one hour. Refresh token last 90 days. I use refresh token to get a valid access token and user don't need to login. That sounds perfect.

What are the steps to accomplish this ?
Is there any documentation or examples about this ?

Hi,

In TMS FNC Cloud Pack you can use FetchAccessToken. This is documented here:

https://download.tmssoftware.com/doc/tmsfnccloudpack/components/promisessupport/#fetch-access-token

Thanks, I hope this is the missing piece.
I would suggest you to change the email demo to use FetchAccessToken.
And maybe also the extra parameter for SendMessage.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.