Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TDDD27_2024_LiUtils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
albar556-marka727
TDDD27_2024_LiUtils
Merge requests
!34
#40
Include user in auth response
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
#40
Include user in auth response
40-include-user-in-auth-response
into
main
Overview
1
Commits
2
Pipelines
2
Changes
2
Merged
Martin Kaller
requested to merge
40-include-user-in-auth-response
into
main
7 months ago
Overview
1
Commits
2
Pipelines
2
Changes
2
Expand
Closes
#40 (closed)
0
0
Merge request reports
Compare
main
version 1
6af5fe03
7 months ago
main (base)
and
latest version
latest version
4f8c710b
2 commits,
7 months ago
version 1
6af5fe03
1 commit,
7 months ago
2 files
+
2
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
backend/src/controllers/UserController.ts
+
2
−
0
Options
@@ -48,6 +48,7 @@ export class UserController extends Controller {
const
token
=
JwtService
.
encode
(
user
);
return
{
jwt
:
token
,
user
:
mapUserToDTO
(
user
),
};
}
@@ -120,6 +121,7 @@ interface SignedInRequestDTO {
interface
SignedInResponseDTO
{
jwt
:
string
;
user
:
UserDTO
;
}
interface
MyUserResponseDTO
{
Loading