Websites v4 docs v5.2.4
    Preparing search index...

    Hierarchy

    • default
      • AdminUser
    Index

    Constructors

    Properties

    sessionData: SessionsResponse | null
    allowedUserTypes: string[] = ...
    serializer: (model: any) => any

    serializer is a pure function that takes a model instance and returns a plain object that describes how to convert the model to JSON

    sessionCookieName: string = ...

    Accessors

    Methods

    • Retrieves a value from raw API data. Prioritises DBAPI data if available

      Parameters

      • key: string

      Returns any

    • Special method to define behaviour of JSON.stringify() on model instance

      Returns any

    • Parameters

      • __namedParameters: { domain: string; email: string; password: string }

      Returns Promise<{ error: unknown; result: AdminUser | null }>

    • Admin user session verification requires a Bearer token (app verification) via staging users api if in a staging environment. This differs from other flows that always require a Bearer token from production, regardless of environment. This is handled in the users-api-session-helper.ts.

      Parameters

      • encryptedCookieToken: string
      • domain: string

      Returns Promise<AdminUser | null>