Interface Options

Configuration for the API.

Hierarchy

  • Options

Properties

agent: ((method: string, location: string) => SuperAgentRequest)

Type declaration

    • (method: string, location: string): SuperAgentRequest
    • Superagent-like agent. Pass your own instance of superagent or supertest.

      Returns

      SuperAgentRequest

      Parameters

      • method: string

        method

      • location: string

        url

      Returns SuperAgentRequest

apiKey: string

API key from the dashboard.

appId: string

Your appId. Automatically inferred from apiKey.

cookieSameSite?: boolean | "lax" | "strict" | "none"

Override the SameSite attribute for authentication cookies.

cookiesDomain?: string

Dictates the Domain attribute for authentication cookies.

Example: '.example.com'

disableSecureCookies?: boolean

Disable secure cookies. Will only take effect if process.env.NODE_ENV === 'development'.

loginCookieName: string

Name for the login cookie (optional).

loginStateCookieName: string

Name for the login state cookie (optional)

realm: Realm

Configures the URL of the unologĀ·in API.

Generated using TypeDoc