diff --git a/bun.lockb b/bun.lockb index 13ce365..0a8ca11 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index e9054d9..c9c6aa0 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "drizzle-orm": "^0.28.6", "drizzle-typebox": "^0.1.1", "elysia": "^0.6.22", + "elysia-autoroutes": "^0.2.2", "lucia": "^2.6.0", "pino-pretty": "^10.2.0", "zod": "^3.22.2" diff --git a/src/auth/index.ts b/src/auth/index.ts index d16052c..6d34027 100644 --- a/src/auth/index.ts +++ b/src/auth/index.ts @@ -22,6 +22,12 @@ export const auth = lucia({ key: "user_key", session: "user_session", }), + + getUserAttributes: (data) => { + return { + username: data.username, + }; + }, }); export type Auth = typeof auth; diff --git a/src/components/todos.tsx b/src/components/todos.tsx index 88f7be0..4445863 100644 --- a/src/components/todos.tsx +++ b/src/components/todos.tsx @@ -8,13 +8,13 @@ export function TodoItem({ content, completed, id }: Todo) {