diff --git a/waspc/data/Generator/templates/sdk/auth/session.ts b/waspc/data/Generator/templates/sdk/auth/session.ts index 96d8cfdf69..a077b41a05 100644 --- a/waspc/data/Generator/templates/sdk/auth/session.ts +++ b/waspc/data/Generator/templates/sdk/auth/session.ts @@ -2,7 +2,7 @@ import { Request as ExpressRequest } from "express"; import { type {= userEntityUpper =} } from "wasp/entities" -import { type AuthUser } from 'wasp/server/_types' +import { type AuthUser } from 'wasp/auth' import { auth } from "./lucia.js"; import type { Session } from "lucia"; diff --git a/waspc/data/Generator/templates/sdk/auth/types.ts b/waspc/data/Generator/templates/sdk/auth/types.ts index b90fb05824..03d33b5016 100644 --- a/waspc/data/Generator/templates/sdk/auth/types.ts +++ b/waspc/data/Generator/templates/sdk/auth/types.ts @@ -1,2 +1,2 @@ // todo(filip): turn into a proper import/path -export type { AuthUser, ProviderName, DeserializedAuthIdentity } from 'wasp/server/_types/' +export type { AuthUser, ProviderName, DeserializedAuthIdentity } from 'wasp/server/_types' diff --git a/waspc/examples/todo-typescript/.wasp/out/sdk/wasp/auth/types.ts b/waspc/examples/todo-typescript/.wasp/out/sdk/wasp/auth/types.ts index b90fb05824..03d33b5016 100644 --- a/waspc/examples/todo-typescript/.wasp/out/sdk/wasp/auth/types.ts +++ b/waspc/examples/todo-typescript/.wasp/out/sdk/wasp/auth/types.ts @@ -1,2 +1,2 @@ // todo(filip): turn into a proper import/path -export type { AuthUser, ProviderName, DeserializedAuthIdentity } from 'wasp/server/_types/' +export type { AuthUser, ProviderName, DeserializedAuthIdentity } from 'wasp/server/_types' diff --git a/waspc/examples/todo-typescript/src/Todo.test.tsx b/waspc/examples/todo-typescript/src/Todo.test.tsx index 47dee23f7b..151554bce5 100644 --- a/waspc/examples/todo-typescript/src/Todo.test.tsx +++ b/waspc/examples/todo-typescript/src/Todo.test.tsx @@ -5,7 +5,7 @@ import { mockServer, renderInContext } from 'wasp/test' import { getTasks } from 'wasp/rpc/queries' import { Todo, areThereAnyTasks } from './Todo' import { MainPage } from './MainPage' -import type { User } from 'wasp/auth/types' +import type { AuthUser } from 'wasp/auth' import { getMe } from 'wasp/auth/useAuth' import { Tasks } from 'wasp/crud/Tasks' @@ -54,7 +54,7 @@ const mockUser = { ], }, address: '', -} satisfies User +} satisfies AuthUser test('handles mock data', async () => { mockQuery(getTasks, mockTasks)