Refresh of token

We’re currently using B2C for authentication in our application. However, after 60 minutes the access token expires, which causes users to lose access to parts of the application. To regain access, they have to log out and log back in. Is there a way to automatically refresh the token when it expires so the user experience remains seamless?

I’ve tried using this function, but not sure if i’m doing it correctly or what..

Hi,

You have used the action node correctly! This action can for instance be connected to a Timer, which runs every 60 minutes and refreshes the token.

Rhys

I have tried this, but the process fails, with the following error message.

Hi

Just to confirm, is the Auth Provider “Azure AD B2C - Dev” configured to provide a refresh_token? And is offline_access included in the scopes in Auth Provider settings?

Rhys

Hi

Yes, it’s configured for that and the offline_access is also in the setting

image

Is it possible to gain access to the solution to check in a bit more detail from our end, and see if it is maybe a bug or something else? My email is rhys@appfarm.io :slightly_smiling_face: