UNPKG

9s-fe-core

Version:

Core functionalities for authentication, configuration, and repository management.

22 lines (21 loc) 842 B
import { ResponseModel } from "../repository/models/response_model"; import { LoginResponse, ProfileResponse } from "./login/types"; declare class AuthRepository { private static instance; private constructor(); static getInstance(): AuthRepository; /** * Hàm login * @param email Email của người dùng * @param password Mật khẩu của người dùng * @returns Thông tin phản hồi từ API */ login(email: string, password: string): Promise<ResponseModel<LoginResponse>>; /** * Lấy thông tin profile của người dùng đã đăng nhập * @returns Thông tin phản hồi từ API chứa dữ liệu người dùng */ getUserProfile(): Promise<ResponseModel<ProfileResponse>>; } export declare const authRepository: AuthRepository; export {};