Skip to content

feat: add sessionStore option to enable back channel logout - #36

Merged
yogeshchoudhary147 merged 2 commits into
mainfrom
feat/backchannel-logout-session-store
Aug 30, 2026
Merged

feat: add sessionStore option to enable back channel logout#36
yogeshchoudhary147 merged 2 commits into
mainfrom
feat/backchannel-logout-session-store

Conversation

@yogeshchoudhary147

@yogeshchoudhary147 yogeshchoudhary147 commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds an optional sessionStore to Auth0ServerConfig — when provided, StatefulStateStore is used instead of StatelessStateStore, making handleBackchannelLogout functional (returns 204 instead of always 400)
  • Fixes HookedStateStore.deleteByLogoutToken which was silently dropping its claims and storeOptions arguments
  • Re-exports SessionStore, StateData, and LogoutTokenClaims from the server entry point so consumers can type their custom store implementations
  • Updates EXAMPLES.md with a sessionStore setup guide and in-memory example; updates README.md to note the requirement

Test plan

  • All existing tests pass (npm test)
  • New tests cover: deleteByLogoutToken argument forwarding in HookedStateStore, stateless store throws without sessionStore, stateful store resolves and delegates to provided store
  • npm run typecheck passes
  • npm run lint passes

@yogeshchoudhary147
yogeshchoudhary147 force-pushed the feat/backchannel-logout-session-store branch from 83ac96b to 58834aa Compare August 27, 2026 15:58
Expose an optional sessionStore on Auth0ServerConfig. When provided,
StatefulStateStore is used instead of StatelessStateStore, enabling
handleBackchannelLogout to return 204 rather than always returning 400.

Also fix HookedStateStore.deleteByLogoutToken which was silently
dropping its claims and storeOptions arguments.

Re-export SessionStore, StateData, and LogoutTokenClaims from the
server entry point so consumers can type their custom store.
@yogeshchoudhary147
yogeshchoudhary147 force-pushed the feat/backchannel-logout-session-store branch from 58834aa to 39e418b Compare August 28, 2026 16:13
@yogeshchoudhary147 yogeshchoudhary147 changed the title feat: add sessionStore option to enable backchannel logout feat: add sessionStore option to enable back channel logout Aug 28, 2026
@yogeshchoudhary147
yogeshchoudhary147 merged commit 71256ae into main Aug 30, 2026
10 checks passed
@yogeshchoudhary147
yogeshchoudhary147 deleted the feat/backchannel-logout-session-store branch August 30, 2026 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants