https://www.ory.sh/ logo
#talk-hydra
Title
# talk-hydra
p

polite-analyst-53191

10/12/2021, 2:44 PM
Hi! I need a feature thats in the master branch but i can't find an image for it (refresh_token_hook), do you guys know when next release would be (1.10.7)? I would be satisified the image:latest is avaiable so i can continue developing.
👀 1
l

limited-tent-11422

10/12/2021, 3:48 PM
You can as well just build the image yourself, but would be cool to have a release from @high-optician-2097 🙂
p

polite-analyst-53191

10/12/2021, 3:49 PM
yeah i guess, just lazy and thought maybe if its soon
l

limited-tent-11422

10/12/2021, 3:50 PM
Let me know if you have any issues with refresh token hook, I actually built that feature and my team runs it in production for some time already. We build Hydra ourselves.
p

polite-analyst-53191

10/12/2021, 3:51 PM
oh thats great to hear, i actually do have a question about triggering the refresh
am i supposed to invalidate the jwt?
l

limited-tent-11422

10/12/2021, 3:52 PM
you cannot invalidate jwt token
thats why you keep it short-lived
p

polite-analyst-53191

10/12/2021, 3:53 PM
i see, so no manual refresh
?
sounds easier i guess
l

limited-tent-11422

10/12/2021, 3:56 PM
when you refresh you get new access, refresh and id tokens, previous refresh token (opaque) is invalidated, access token (jwt) is not
hook just populates claims of new access and id tokens on refresh, it can also optionally deny the refresh if you return
401
p

polite-analyst-53191

10/12/2021, 3:58 PM
i see so if i use the refresh token i can trigger the hook? was looking to triggering the refresh manually so the new claims are added
l

limited-tent-11422

10/12/2021, 3:58 PM
exactly
p

polite-analyst-53191

10/12/2021, 3:58 PM
Alright, il give it a shot
👍 1
Thanks alot!
l

limited-tent-11422

10/12/2021, 3:59 PM
make sure to respect the scopes
👍 1
👀 1
4 Views