feat: add jwt auth guard and profile endpoint

This commit is contained in:
2026-02-28 08:14:04 +03:30
parent 8212ede785
commit 06f659101d
21 changed files with 371 additions and 31 deletions
@@ -38,4 +38,13 @@ export class UsersService {
return newUser;
}
public getProfile(user: User) {
return {
phone: user.phone,
firstName: user.firstName,
lastName: user.lastName,
dateJoined: user.createdAt,
};
}
}