v-ladynev / keycloak-nodejs-example

A simply step by step Keycloak, MySQL and Node.js integration tutorial. There are some docker examples as well.
291 stars 102 forks source link

REFRESH TOKEN #8

Closed ellik95 closed 4 years ago

ellik95 commented 4 years ago

Hello, Does your example support refresh token or do you know how can I implement this? Thank you

v-ladynev commented 4 years ago

@ellik95 JWT token that is returned by Keycloak has refresh_token https://github.com/v-ladynev/keycloak-nodejs-example#what-happens-with-custom-login

This project keycloak-nodejs-example uses https://github.com/keycloak/keycloak-nodejs-connect library.

keycloak-nodejs-connect library supports refreshing of the access_token https://github.com/keycloak/keycloak-nodejs-connect/blob/master/middleware/auth-utils/grant-manager.js#L217

ellik95 commented 4 years ago

Thank you for your answer!

v-ladynev commented 4 years ago

@ellik95 Always happy to help.