feat: add sessionStore option to enable back channel logout - #36
Merged
Conversation
yogeshchoudhary147
force-pushed
the
feat/backchannel-logout-session-store
branch
from
August 27, 2026 15:58
83ac96b to
58834aa
Compare
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
force-pushed
the
feat/backchannel-logout-session-store
branch
from
August 28, 2026 16:13
58834aa to
39e418b
Compare
Piyush-85
approved these changes
Aug 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sessionStoretoAuth0ServerConfig— when provided,StatefulStateStoreis used instead ofStatelessStateStore, makinghandleBackchannelLogoutfunctional (returns 204 instead of always 400)HookedStateStore.deleteByLogoutTokenwhich was silently dropping itsclaimsandstoreOptionsargumentsSessionStore,StateData, andLogoutTokenClaimsfrom the server entry point so consumers can type their custom store implementationsEXAMPLES.mdwith asessionStoresetup guide and in-memory example; updatesREADME.mdto note the requirementTest plan
npm test)deleteByLogoutTokenargument forwarding inHookedStateStore, stateless store throws withoutsessionStore, stateful store resolves and delegates to provided storenpm run typecheckpassesnpm run lintpasses