Retool trigger OAuth2 refresh token on demand


I am using OAuth2 authentication (with AWS Cognito as Identity provider). I have a use case where I need to update certain user attributes in Cognito and then refresh IdToken so that the updated attributes are present in IdToken as claims. Is there a way to do this?

Hi @sunny_agarwal, If it's still helpful, the only way to access these new claims in Retool after they've been updated in Incognito would be to re-auth from Retool and receive a new IdToken from Incognito. There's no way to push a new IdToken to the users in Retool, unfortunately. Let me know if I'm understanding your question!