Closed radu-cs closed 5 months ago
Hi @radu-cs ,
Thank you for your issue. The renewTokens is available for that.
You can use it like that : https://github.com/AxaFrance/oidc-client/blob/da88573ed9574f236b486eaf9b0302f9b387e503/examples/react-oidc-demo/src/Home.tsx#L36C149-L36C167
Hi @radu-cs ,
Thank you for your issue. The renewTokens is available for that.
You can use it like that : https://github.com/AxaFrance/oidc-client/blob/da88573ed9574f236b486eaf9b0302f9b387e503/examples/react-oidc-demo/src/Home.tsx#L36C149-L36C167
Salut @guillaume-chervet, Thank you for your reply. I'll try it and in case that I have success I'll close the Issue or I'll be coming with follow up questions. 🙂
How to refresh tokens when returning from the Identity Provider after editing user profile data
Given the following scenario: In the SPA we have a link to edit the user Profile on our node.js Identity Provider. After the user changes some information (e.g. language preference, name, etc.) when returning to the SPA the information is not updated from Identity Provider but uses the previous tokens that have the old information about the user.
Is there a native way to force the token refresh when returning to the SPA? Like a query parameter that can be attached to the URL for:
Or is there any other way to force the token refresh when returning from different Identity Provider Server?
Thank you in advance for your answer.
Versions
"@axa-fr/react-oidc": "7.13.14"
OIDC config