Initial commit: Angular frontend and Expressjs backend

This commit is contained in:
chamikaJ
2024-05-17 09:32:30 +05:30
parent eb0a0d77d6
commit 298ca6beeb
3548 changed files with 193558 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
import {IPassportSession} from "../interfaces/passport-session";
export class AuthResponse {
private authenticated = false;
private user: IPassportSession | null = null;
private title: string | null = null;
private auth_error: string | null = null;
private message: string | null = null;
constructor(title: string | null, authenticated: boolean, user: IPassportSession | null, auth_error: string | null, message: string | null) {
this.title = title;
this.authenticated = !!authenticated;
this.user = user;
this.auth_error = auth_error;
this.message = message;
}
}