Skip to content

Emit a TokenRefreshedEvent when the login token is refreshed - #1517

Merged
julien-nc merged 1 commit into
mainfrom
enh/noid/token-refresh-event
Sep 1, 2026
Merged

Emit a TokenRefreshedEvent when the login token is refreshed#1517
julien-nc merged 1 commit into
mainfrom
enh/noid/token-refresh-event

Conversation

@julien-nc

@julien-nc julien-nc commented Sep 1, 2026

Copy link
Copy Markdown
Member

Right now, if store_login_token is enabled, other apps can request a valid login token when they need it by emitting ExternalTokenRequestedEvent.

But in some cases, they might want to only get it once and know when it is refreshed.
So they can listen to the existing TokenObtainedEvent to get the login token when the user is logging in and listen to the new TokenRefreshedEvent to get the refreshed token only once, when it is obtained.

This could be convenient if an app wants to store the token instead of accessing it everytime they need it.

This should not have any annoying side effect.

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@julien-nc julien-nc added enhancement New feature or request 3. to review labels Sep 1, 2026
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc
julien-nc force-pushed the enh/noid/token-refresh-event branch from 90c7b83 to 599052e Compare September 1, 2026 09:00
@julien-nc
julien-nc merged commit 9768319 into main Sep 1, 2026
55 checks passed
@julien-nc
julien-nc deleted the enh/noid/token-refresh-event branch September 1, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants