supertokens-node
    Preparing search index...

    Class User

    Implements

    • User
    Index

    Constructors

    • Parameters

      • user: UserWithoutHelperFunctions

      Returns User

    Properties

    emails: string[]
    id: string
    isPrimaryUser: boolean
    loginMethods: LoginMethod[]
    phoneNumbers: string[]
    tenantIds: string[]
    thirdParty: { id: string; userId: string }[]
    timeJoined: number
    webauthn: { credentialIds: string[] }

    Methods

    • This function is used to create a User object from the API response.

      Parameters

      • apiUser: Omit<UserWithoutHelperFunctions, "id"> & { id: string }

        The API response from the user endpoint.

      Returns User

      A User object.