@fkn/lib/account
Type Aliases
Section titled “Type Aliases”AccountInfo
Section titled “AccountInfo”type AccountInfo = object;Properties
Section titled “Properties”image: string | null;profile image URL, or null if none is set
name: string;the account’s display name (a username, not necessarily a real name)
premium
Section titled “premium”premium: boolean;the account has an active paid subscription
premiumUntil
Section titled “premiumUntil”premiumUntil: number | null;when the current subscription lapses, as a ms epoch, or null when not subscribed
Functions
Section titled “Functions”info()
Section titled “info()”function info(): Promise<AccountInfo | null>;Returns
Section titled “Returns”Promise<AccountInfo | null>
login()
Section titled “login()”function login(): Promise<boolean>;Returns
Section titled “Returns”Promise<boolean>
logout()
Section titled “logout()”function logout(): Promise<void>;Returns
Section titled “Returns”Promise<void>
onChange()
Section titled “onChange()”function onChange(callback): Promise<() => void>;Parameters
Section titled “Parameters”callback
Section titled “callback”() => void
Returns
Section titled “Returns”Promise<() => void>