Skip to content

feat: move auth storage to global user directory#225

Merged
antfu merged 1 commit intomainfrom
antfu/global-auth-store
Mar 18, 2026
Merged

feat: move auth storage to global user directory#225
antfu merged 1 commit intomainfrom
antfu/global-auth-store

Conversation

@antfu
Copy link
Member

@antfu antfu commented Mar 18, 2026

Description

Move trusted client authentication storage from per-project (node_modules/.vite/devtools/auth.json) to global user directory (~/.vite/devtools/auth.json). This allows clients to remain trusted across multiple projects without needing to re-authenticate for each one.

Linked Issues

None

Additional context

The change affects only the auth storage path in packages/core/src/node/context-internal.ts. The storage mechanism and all other authentication logic remain unchanged.

Store trusted client auth globally in ~/.vite/devtools/auth.json instead of per-project, so clients don't need to re-authenticate across different projects.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@antfu antfu merged commit dc9218c into main Mar 18, 2026
7 checks passed
@antfu antfu deleted the antfu/global-auth-store branch March 18, 2026 09:19
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