forked from Chatbot/v3-api
15 lines
316 B
TypeScript
15 lines
316 B
TypeScript
import { UserModel } from 'src/database/model/user.model';
|
|
|
|
export class Identity {
|
|
user: UserModel;
|
|
public get isAuthenticated(): boolean {
|
|
return !!this.user;
|
|
}
|
|
}
|
|
// export class AdminIdentity {
|
|
// admin: AdminModel;
|
|
// public get isAuthenticated(): boolean {
|
|
// return !!this.admin;
|
|
// }
|
|
// }
|