Skip to content

Commit 365c2ca

Browse files
Added user information to login
1 parent 3e9cfa3 commit 365c2ca

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/routes/auth/login.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ export async function handleAuthLoginRequest(request: RequestWithKey, env: Env,
4646
success: true,
4747
token: {
4848
key: token.key
49+
},
50+
user: {
51+
id: user.id,
52+
name: user.firstname + " " + user.lastname,
53+
avatar: user.avatar
4954
}
5055
});
5156
}

0 commit comments

Comments
 (0)