Developers

Account

Whenever you're dealing with an account in your template, you're actually working with a Account object.

Properties

name

Type: string|null

The name of the account.

handle

Type: string|null

The handle of the account.

primaryColor

Type: string|null

The primary brand color of the provider connected.

icon

Type: string|null

The SVG icon of the account provider connected.

providerName

Type: string

The name of the account provider connected.

Methods

isConfigured()

Whether the account provider has been configured.

isConnected()

Returns: bool

Whether the account provider has been connected and has a token.

getToken()

The access token for a account provider.