Skip to content

Commit 2d9b428

Browse files
Added user information to registration
1 parent 365c2ca commit 2d9b428

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/routes/auth/register.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ export async function handleAuthRegisterRequest(request: RequestWithKey, env: En
6666
success: true,
6767
token: {
6868
key: token.key
69+
},
70+
user: {
71+
id: user.id,
72+
name: user.firstname + " " + user.lastname,
73+
avatar: user.avatar
6974
}
7075
});
7176
}

0 commit comments

Comments
 (0)