René's URL Explorer Experiment


Title: OIDC server_error after account delete + re-create (stale session) · Issue #452 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: OIDC server_error after account delete + re-create (stale session) · Issue #452 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: OIDC server_error after account delete + re-create (stale session) · Issue #452 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Bug After deleting an account via /idp/account/delete and re-creating it with the same username, OIDC authorization fails with: Authentication Error — server_error — oops! something went wrong This is a recurring issue. Cause The error i...

Open Graph Description: Bug After deleting an account via /idp/account/delete and re-creating it with the same username, OIDC authorization fails with: Authentication Error — server_error — oops! something went wrong This...

X Description: Bug After deleting an account via /idp/account/delete and re-creating it with the same username, OIDC authorization fails with: Authentication Error — server_error — oops! something went wrong This...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OIDC server_error after account delete + re-create (stale session)","articleBody":"## Bug\n\nAfter deleting an account via `/idp/account/delete` and re-creating it with the same username, OIDC authorization fails with:\n\n> **Authentication Error** — server_error — oops! something went wrong\n\nThis is a recurring issue.\n\n## Cause\n\nThe error in the logs:\n\n```\nTypeError: Cannot read properties of undefined (reading 'getOIDCScopeEncountered')\n    at Check.oidc.oidc (oidc-provider/lib/helpers/interaction_policy/prompts/consent.js:29:50)\n    at oidc-provider/lib/actions/authorization/interactions.js:18:17\n```\n\nThe flow:\n1. User deletes their account — account data and grants are removed\n2. User re-creates account with same username\n3. Client (e.g. mashlib-next) still has old session cookies/tokens and sends `prompt=consent` to `/idp/auth`\n4. `loadExistingGrant()` in `provider.js` checks `ctx.oidc.session` which is undefined (stale session)\n5. Returns `undefined` — no grant object\n6. oidc-provider's consent check calls `getOIDCScopeEncountered()` on the undefined grant → TypeError → 500\n\n## Possible fixes\n\n1. **Clear OIDC session cookies on account deletion** — when `/idp/account/delete` runs, ensure session cookies are invalidated so the browser doesn't send stale tokens\n2. **Guard in `loadExistingGrant`** — return a new grant (auto-approve) when session exists but old grant is gone, rather than returning undefined\n3. **Error handler** — catch this specific error and redirect to login instead of showing server_error\n\n## Steps to reproduce\n\n1. Register an account on a JSS instance\n2. Log in via OIDC from a client app\n3. Delete the account via `/idp/account/delete`\n4. Re-register with the same username\n5. Try to log in again from the same browser → server_error","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-14T20:12:04Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:875e4a98-1291-0d40-0923-cdd568b45c9c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8EA8:232DFC:9A3BD7:C36E26:6B03A2B6
html-safe-nonced06598325a851dc2feda344c98ca0ebac928e8762e24e7d986065d0b085d0cf5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUE4OjIzMkRGQzo5QTNCRDc6QzM2RTI2OjZCMDNBMkI2IiwidmlzaXRvcl9pZCI6IjIyODc4ODA4MDA2NDcyMjYwMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbc024d537f0b3d0204db76c5d4942d00fe4ed0cf03b44d18ddb730bbc70b674e
hovercard-subject-tagissue:4448948657
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/452/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b5d9e8cb1b1bab2ef0ae6aacf9ccae22520d05e1f1a1e09424e90e641dcb7bcd/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b5d9e8cb1b1bab2ef0ae6aacf9ccae22520d05e1f1a1e09424e90e641dcb7bcd/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
og:image:altBug After deleting an account via /idp/account/delete and re-creating it with the same username, OIDC authorization fails with: Authentication Error — server_error — oops! something went wrong This...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F452
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F452
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
#453https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/453
OIDC server_error after account delete + re-create (stale session)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452#top
#453https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/453
bugSomething isn't workinghttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452#issue-4448948657
melvincarvalhohttps://github.com/melvincarvalho
bugSomething isn't workinghttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22bug%22
on May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452#event-25546478634
melvincarvalhohttps://github.com/melvincarvalho
on May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452#event-25547190511
Add stale session recovery in renderError for consent crash (#452)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/3383a76016ec9bb4709d766f246a41c6b3e5f469
#452https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
3383a76https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/3383a76016ec9bb4709d766f246a41c6b3e5f469
Address Copilot review: Secure attribute and broader error match (#452)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/545c85913a7f1556d324ab63f8d87945a3077a2a
#452https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
545c859https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/545c85913a7f1556d324ab63f8d87945a3077a2a
Gate stale session redirect on GET requests only (#452)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/373da9cf7d6fc029590104b985a291c5ad6bc8ec
#452https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
373da9chttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/373da9cf7d6fc029590104b985a291c5ad6bc8ec
melvincarvalhohttps://github.com/melvincarvalho
completedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#453https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/453
on May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452#event-25548424836
melvincarvalhohttps://github.com/melvincarvalho
on May 14, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452#event-25548425007
Fix OIDC server_error after account delete + re-create (#452)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/0861c0b581c1cafeb34d202e076f37b5ec339a3f
#452https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
0861c0bhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/0861c0b581c1cafeb34d202e076f37b5ec339a3f
Bump version to 0.0.193https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/dcafee6125599bc9ffc7a7c96a8b1684e9bd2cfd
dcafee6https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/dcafee6125599bc9ffc7a7c96a8b1684e9bd2cfd
Sign up for freehttps://github.com/signup?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
Sign in to commenthttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/452
bugSomething isn't workinghttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.