René's URL Explorer Experiment


Title: Auth config regeneration in dev can reuse a cached config · Issue #550 · voidzero-dev/void · GitHub

Open Graph Title: Auth config regeneration in dev can reuse a cached config · Issue #550 · voidzero-dev/void

X Title: Auth config regeneration in dev can reuse a cached config · Issue #550 · voidzero-dev/void

Description: Problem loadVoidAuthConfig() uses a plain native import() of the config file URL. Loading the same path again in the same Node process can therefore return the original module after the file has been edited. The dev watcher explicitly ha...

Open Graph Description: Problem loadVoidAuthConfig() uses a plain native import() of the config file URL. Loading the same path again in the same Node process can therefore return the original module after the file has be...

X Description: Problem loadVoidAuthConfig() uses a plain native import() of the config file URL. Loading the same path again in the same Node process can therefore return the original module after the file has be...

Opengraph URL: https://github.com/voidzero-dev/void/issues/550

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auth config regeneration in dev can reuse a cached config","articleBody":"## Problem\n\n`loadVoidAuthConfig()` uses a plain native `import()` of the config file URL. Loading the same path again in the same Node process can therefore return the original module after the file has been edited.\n\nThe dev watcher explicitly handles changes to auth-config files and calls `writeAuthDatabaseFiles()`, which loads the config through this function. Consequently, that regeneration can use stale settings even though it was triggered by a config edit.\n\n## Documentation and intended behavior\n\nThe [auth guide](https://github.com/voidzero-dev/void/blob/main/docs/guide/auth.md) documents `auth.ts` customization and automatic auth-table creation during local development, but **does not explicitly promise that auth-config edits hot-reload**.\n\nThis issue is based on the existing implementation: the watcher already responds to those edits and attempts regeneration, which suggests it intends to use the updated config. This is an inference about intended behavior, not a claim that the docs guarantee hot reload. If a restart is intentionally required, that requirement should be made explicit.\n\n## Confirmed reproduction\n\nA direct reproduction using the production `loadVoidAuthConfig()` function:\n\n1. Write a temporary module exporting `{ marker: 'auth-before' }`.\n2. Load it with `loadVoidAuthConfig(path)`.\n3. Overwrite the same file with `{ marker: 'auth-after' }`.\n4. Call `loadVoidAuthConfig(path)` again in the same process.\n\nBoth calls returned `{ marker: 'auth-before' }`, and the returned objects were identical, although the file contained `auth-after`.\n\nThe loader caching was reproduced directly. A complete auth application with a schema-changing edit has not been tested end to end; the consequence for generated auth files follows from inspection of the watcher and generation path.\n\n## Expected behavior and scope\n\nWhen regeneration runs in response to an auth-config edit, it should evaluate the current configuration. Restarting the dev process is the current workaround.\n\nThis behavior already exists on `main` and is independent of the incremental source-analysis changes in #543.\n\nA fix should preserve existing module compatibility and cover direct config edits, edits to imported local helpers, and recovery after correcting a syntax error. Reloading only the top-level file may leave its imported dependencies cached.\n\nRelevant code: [auth config loader](https://github.com/voidzero-dev/void/blob/main/packages/void/src/auth/config.ts), [routing watcher and auth-file generation](https://github.com/voidzero-dev/void/blob/main/packages/void/src/plugin-routing.ts).\n","author":{"url":"https://github.com/yangshun","@type":"Person","name":"yangshun"},"datePublished":"2026-10-22T10:18:59Z","url":"https://github.com/voidzero-dev/void/issues/550"}

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:4121effd-8a82-f8f2-9880-689caeabbd72
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA7C:B93E6:63986:8785E:6AFBB657
html-safe-noncebc5cfb856b7a16dfe9a9afd3cb2f341b1f3969266a954263f81c56aaf1c27c07
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTdDOkI5M0U2OjYzOTg2Ojg3ODVFOjZBRkJCNjU3IiwidmlzaXRvcl9pZCI6IjkwNDc0MjA5NTQyMjIwNzU3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace03e695aa64674df27234330f2785c9ffb2a1721eda13314dc67b6fa98f4e67c
hovercard-subject-tagissue:5977442641
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/voidzero-dev/void/550/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0e6881bb82e2dfc0e9337889cafd65122c7691ee2dd3bc92e95c414d802d87be/voidzero-dev/void/issues/550
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0e6881bb82e2dfc0e9337889cafd65122c7691ee2dd3bc92e95c414d802d87be/voidzero-dev/void/issues/550
og:image:altProblem loadVoidAuthConfig() uses a plain native import() of the config file URL. Loading the same path again in the same Node process can therefore return the original module after the file has be...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyangshun
hostnamegithub.com
expected-hostnamegithub.com
None2b2ef9c1578c18d8ed27027940544c958743213cf4461659f14d3ccdf51e162c
turbo-cache-controlno-preview
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
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
releasee4cce0e99cf61481a318ff12c2e8580153a6c7c6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/voidzero-dev/void/issues/550#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F550
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%2Fvoidzero-dev%2Fvoid%2Fissues%2F550
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=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/issues/550
Reloadhttps://github.com/voidzero-dev/void/issues/550
Reloadhttps://github.com/voidzero-dev/void/issues/550
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues31 (31)https://github.com/voidzero-dev/void/issues
Pull requests10 (10)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
https://github.com/voidzero-dev/void
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/550
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/550
#554https://github.com/voidzero-dev/void/pull/554
Auth config regeneration in dev can reuse a cached confighttps://github.com/voidzero-dev/void/issues/550#top
#554https://github.com/voidzero-dev/void/pull/554
https://github.com/yangshun
yangshunhttps://github.com/yangshun
on Oct 22, 2026https://github.com/voidzero-dev/void/issues/550#issue-5977442641
auth guidehttps://github.com/voidzero-dev/void/blob/main/docs/guide/auth.md
#543https://github.com/voidzero-dev/void/pull/543
auth config loaderhttps://github.com/voidzero-dev/void/blob/main/packages/void/src/auth/config.ts
routing watcher and auth-file generationhttps://github.com/voidzero-dev/void/blob/main/packages/void/src/plugin-routing.ts
Brooooooklynhttps://github.com/Brooooooklyn
completedhttps://github.com/voidzero-dev/void/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#554https://github.com/voidzero-dev/void/pull/554
on Oct 26, 2026https://github.com/voidzero-dev/void/issues/550#event-34220608119
yangshunhttps://github.com/yangshun
on Oct 26, 2026https://github.com/voidzero-dev/void/issues/550#event-34221486216
fix(auth): reload the auth config and its local imports in dev (voidz…https://github.com/yangshun/void/commit/0b662af9e75ca5fcb0bf494c7dfebaba466e6de4
voidz…https://github.com/voidzero-dev/void/pull/554
https://docs.github.com/articles/closing-issues-via-commit-messages
0b662afhttps://github.com/yangshun/void/commit/0b662af9e75ca5fcb0bf494c7dfebaba466e6de4
Sign up for freehttps://github.com/signup?return_to=https://github.com/voidzero-dev/void/issues/550
Sign in to commenthttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/550
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

Viewport: width=device-width


URLs of crawlers that visited me.