@alisdigital/types-library
Version:
TypeScript type definitions for Papilet ecosystem with session soft delete and event management features
18 lines (17 loc) • 467 B
TypeScript
import { IStatusResponse } from "../../Base/response/status.response";
import { IUserModelAttributes } from "../entity/user.entity";
export type ILoginResponse = {
type: "2FA";
secret: string;
} | {
type: "login";
user: IUserModelAttributes;
accessToken: string;
refreshToken: string;
};
export interface IRefreshTokenResponse {
accessToken: string;
refreshToken: string;
}
export interface ILogoutResponse extends IStatusResponse {
}