clean routes
This commit is contained in:
@@ -89,13 +89,13 @@ export class AuthService {
|
||||
const coreSession = await this.identitySessionPort.getCurrentSession();
|
||||
if (!coreSession) return null;
|
||||
|
||||
// TODO!!
|
||||
return {
|
||||
token: coreSession.token,
|
||||
user: {
|
||||
userId: coreSession.user.id,
|
||||
email: coreSession.user.email ?? '',
|
||||
displayName: coreSession.user.displayName,
|
||||
role: coreSession.user.role as any,
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -307,6 +307,7 @@ export class AuthService {
|
||||
id: sessionId,
|
||||
displayName: user.getDisplayName(),
|
||||
email: user.getEmail() ?? '',
|
||||
role: params.role,
|
||||
},
|
||||
sessionOptions
|
||||
);
|
||||
@@ -315,6 +316,7 @@ export class AuthService {
|
||||
userId: user.getId().value,
|
||||
email: user.getEmail() ?? '',
|
||||
displayName: user.getDisplayName(),
|
||||
role: params.role,
|
||||
};
|
||||
|
||||
if (primaryDriverId !== undefined) {
|
||||
@@ -326,4 +328,4 @@ export class AuthService {
|
||||
user: userDTO,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user