Younify Connect SDK startup options.

Set the properties of this object to configure the sdk. The key and tokenHandler properties are required. The accessToken and refreshToken properties are required for linking and fetching service content for the user and can be set at a later time if unknown at startup. The tokens can be created from the backend api. The tokenHandler must be set to handle updated tokens and requests from the sdk to renew tokens from the backend api.

interface ConnectOptions {
    key: null | string;
    logLevel: LogLevel;
    logListener?: null | LogListener;
    tokenHandler: null | TokenHandler;
    accessToken?: null | string;
    refreshToken?: null | string;
    extra?: null | object;
}

Properties

key: null | string

Required key.

logLevel: LogLevel

Minimum log level. Log statements below logLevel will not be sent to logListener.

logListener?: null | LogListener

Optional log listener for receiving log events.

tokenHandler: null | TokenHandler

Optional token handler for handling token events and renewals.

accessToken?: null | string

The user's access token if known at startup.

refreshToken?: null | string

The user's refresh token if known at startup.

extra?: null | object

Extra options.