Skip to content

docs: fix missing auth.d.ts session types in server dir Nuxt 4 #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Eckhardt-D
Copy link

When auth.d.ts file is in the root of the project, session types only resolve to the augmentation in the app directory. In server/ the types resolve to the empty interfaces in the session.d.ts file.

This PR documents how to fix that by moving your auth.d.ts file to the shared/ folder in Nuxt v4 or compatibilityVersion 4.

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