connect icon indicating copy to clipboard operation
connect copied to clipboard

grant_type refresh_token don't return new refresh token

Open PetrSnobelt opened this issue 8 years ago • 2 comments

Hello, when I try to use grant_type:refresh_token it returns only this keys in json: access_token, token_type, expires_in, id_token,session_state new refresh token is missing from response and old one is invalidated. So it looks like there is no way how to refresh access_token more then once.

I try it using postman or with js function anvil.refresh but both don't return refresh_token (I use scope: openid profile realm email)

When I try search issues about refresh_token I found only this issue https://github.com/anvilresearch/connect/pull/314

Is there any trick how to obtain new refresh token?

Thank you

PetrSnobelt avatar May 30 '16 20:05 PetrSnobelt

Hi @PetrSnobelt,

We merged a fix for this earlier and it will be in the next release (intended for the near future). In the meantime, you can run directly from master by changing your dependency in package.json to:

"anvil-connect": "anvilresearch/connect#master"

Let us know if that works for you!

christiansmith avatar May 30 '16 21:05 christiansmith

Hello @christiansmith I try it on my local anvil, and it looks fine. Refresh token is here and works!

Thank you

PetrSnobelt avatar May 31 '16 17:05 PetrSnobelt