thunder-client-support icon indicating copy to clipboard operation
thunder-client-support copied to clipboard

Automatically Refresh token

Open saymondamasio opened this issue 4 years ago • 2 comments

I would like to suggest a very useful function that has in insominia which is refresh token, it updates the token automatically

saymondamasio avatar Jun 22 '21 17:06 saymondamasio

Hi @saymondamasio thanks for the suggestion. Will add to list. also related to https://github.com/rangav/thunder-client-support/issues/33#issuecomment-838837117

rangav avatar Jun 22 '21 18:06 rangav

That would be a great feature indeed. Here our tokens last only 5 minutes.

omasseau avatar Jul 22 '22 13:07 omasseau

Hi All,

Our next update will include this feature, planning to release this week.

this feature will be more advanced than insomnia and other clients.

rangav avatar Oct 03 '22 11:10 rangav

This feature is now implemented and published to marketplace, please update to v1.19.4

See all features released https://github.com/rangav/thunder-client-support/releases/tag/v1.19.4

Please let me know your feedback.

rangav avatar Oct 03 '22 16:10 rangav

in which case the token will be automatically refreshed?

kvart714 avatar Oct 03 '22 19:10 kvart714

@kvart714 when the token expires, the extension will automatically refresh and fetch new token.

rangav avatar Oct 03 '22 19:10 rangav

@rangav understood: we use grant_type=client_credentials for auth and I store Client ID and Client Secret in extension, but after token expiration the extension is requesting a new token with grant_type=refresh_token we don't support refresh_token for grant type and token aren't refreshed

kvart714 avatar Oct 04 '22 19:10 kvart714

@kvart714 there is a bug, will fix in next few hours.

rangav avatar Oct 04 '22 20:10 rangav

@kvart714 This bug is fixed now, Please update to v1.19.5

rangav avatar Oct 04 '22 22:10 rangav

works perfect! 🎉 Thx, very much 🤝

kvart714 avatar Oct 06 '22 16:10 kvart714

@kvart714 super, thanks for confirmation 👍

rangav avatar Oct 06 '22 17:10 rangav