mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 13:05:44 +00:00
refactor( iam ): migrate session, logout, and guards to IAM
This commit is contained in:
@@ -206,6 +206,12 @@ export class PassengerAuthService {
|
||||
});
|
||||
}
|
||||
|
||||
async logout(user: any, req: any) {
|
||||
const iamAuthService = await this.resolveIamAuthService(req);
|
||||
await iamAuthService.logout(user);
|
||||
return { success: true, message: 'Logged out successfully' };
|
||||
}
|
||||
|
||||
private async compensateIamSignup(email: string): Promise<void> {
|
||||
try {
|
||||
await this.dataSource.query(`DELETE FROM iam.sessions WHERE email = $1`, [email]);
|
||||
|
||||
Reference in New Issue
Block a user