Skip to content

Commit 84f879e

Browse files
authored
docs: set the auth.d.ts in shared/types/
1 parent 71737c2 commit 84f879e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,8 @@ const session = await requireUserSession(event)
156156

157157
You can define the type for your user session by creating a type declaration file (for example, `auth.d.ts`) in your project to augment the `UserSession` type:
158158

159-
> [!NOTE]
160-
> If you are using Nuxt >=4.0.0 or compatibility version 4 add the `auth.d.ts` file to the `shared` directory to get the correct types in server and client.
161-
162159
```ts
163-
// auth.d.ts
160+
// shared/types/auth.d.ts
164161
declare module '#auth-utils' {
165162
interface User {
166163
// Add your own fields

0 commit comments

Comments
 (0)