logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
8.94k stars 446 forks source link

feature request: Refresh JWT on demand. #6795

Open PeerZetZzZzZ opened 1 week ago

PeerZetZzZzZ commented 1 week ago

Please add a method to refresh access token in Next.js server actions.

Currently access token is refreshed automatically. The popular use-case for JWT is to have additional data in the JWT, which is later used on backend (after JWT decoding). Currently adding custom data to JWT doesn't allow to see changes immediately, but must sign out or wait 1h for token refresh which is very inconvenient.