import type { SensitiveString } from "./SensitiveString"; /** * Logging into lemmy. * * Note: Banned users can still log in, to be able to do certain things like delete * their account. */ export type Login = { username_or_email: SensitiveString; password: SensitiveString; /** * May be required, if totp is enabled for their account. */ totp_2fa_token?: string; /** * If this is true the login is valid forever, otherwise it expires after one week. */ stay_logged_in?: boolean; };