Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

grant_type refresh_token don't return new refresh token #334

Open
PetrSnobelt opened this issue May 30, 2016 · 2 comments
Open

grant_type refresh_token don't return new refresh token #334

PetrSnobelt opened this issue May 30, 2016 · 2 comments

Comments

@PetrSnobelt
Copy link

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
#314

Is there any trick how to obtain new refresh token?

Thank you

@christiansmith
Copy link
Member

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!

@PetrSnobelt
Copy link
Author

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

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants