@paroicms/server
Version:
The ParoiCMS server
29 lines (28 loc) • 631 B
TypeScript
export type LoginAction = SignInLoginAction | VerifyLoginAction;
export interface SignInLoginAction {
action: "signIn";
email: string;
password: string;
}
export interface VerifyLoginAction {
action: "verify" | "loginWithPlatformToken";
token: string;
}
export interface LoginInput {
email: string;
password: string;
}
export interface OAuthSuccess {
email: string;
}
export interface LoginSuccess extends OAuthSuccess {
id: string;
name?: string;
language: string;
token: string;
adminToken?: string;
}
export interface LoginFailed {
statusCode: 401;
message: string;
}