UNPKG

@trixcms/nauth

Version:

NAuth is an library for using custom auth between nodejs and TrixCMS. (For exemple : For your modded minecraft project...)

22 lines (21 loc) 648 B
import { JSONProfile } from "../typings/JSONProfile" export default class Profile { /** * @param {JSONProfile} jsonProfile Site API response when retrieving account information */ constructor (jsonProfile: JSONProfile) get id (): string get uuid (): string get username (): string get email (): string get money (): number get hasAvatar (): boolean get isBanned (): boolean get banReason (): string | null get isConfirmed (): boolean get hasTwoAuth (): boolean get ranks (): string[] get token (): string get createdAt (): Date get updatedAt (): Date }