Skip to content

feat: enforce IPSIE session_expiry ceiling on local session lifetime#1126

Open
yogeshchoudhary147 wants to merge 1 commit into
mainfrom
feat/ipsie-session-expiry
Open

feat: enforce IPSIE session_expiry ceiling on local session lifetime#1126
yogeshchoudhary147 wants to merge 1 commit into
mainfrom
feat/ipsie-session-expiry

Conversation

@yogeshchoudhary147

@yogeshchoudhary147 yogeshchoudhary147 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Bumps @auth0/auth0-spa-js to ^2.22.0 to pick up IPSIE session_expiry enforcement
  • Adds one unit test covering mid-session ceiling breach via getAccessTokenSilently
  • Adds Session Expiry from Upstream IdP (IPSIE) section to EXAMPLES.md

No provider code changes are needed. Enforcement is fully handled by auth0-spa-js. The React layer already propagates the undefined user/token responses into isAuthenticated: false state transitions. Routes wrapped with withAuthenticationRequired require no code changes; components calling getAccessTokenSilently() imperatively need an explicit null check (documented in EXAMPLES.md).

Test plan

  • All existing unit tests pass
  • New session_expiry ceiling (IPSIE SL1) test passes
  • Manual: deploy a Post-Login Action with api.idToken.setCustomClaim('session_expiry', Math.floor(Date.now() / 1000) + 120), log in, wait 2 minutes. The app should redirect to login without any code changes.

@yogeshchoudhary147 yogeshchoudhary147 requested a review from a team as a code owner June 29, 2026 11:04
@yogeshchoudhary147 yogeshchoudhary147 force-pushed the feat/ipsie-session-expiry branch 2 times, most recently from 9d104e6 to 63added Compare June 29, 2026 11:13
@yogeshchoudhary147 yogeshchoudhary147 force-pushed the feat/ipsie-session-expiry branch from 63added to 6814d11 Compare June 29, 2026 13:16
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.

1 participant