frappe-js-sdk
Version:
TypeScript/JavaScript client for Frappe Framework REST API
20 lines (19 loc) • 440 B
TypeScript
export type AuthCredentials = UserPassCredentials | OTPCredentials;
export interface AuthResponse {
message?: string;
home_page?: string;
full_name?: string;
tmp_id?: string;
verification?: any;
exc_type?: string;
}
export interface UserPassCredentials {
username: string;
password: string;
device?: string;
}
export interface OTPCredentials {
otp: string;
tmp_id: string;
device?: string;
}