as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

IAccountLoginHandlerAsync

Interface for handling AccountLogin callbacks asynchronously. All handlers are optional — a component only needs to implement the handlers relevant to its role (e.g. a service component may only handle read status).

Methods

handleGetSetupPin()?

optional handleGetSetupPin(accountId): Promise<string>

Asynchronously handles a get setup pin request.

Parameters

accountId

string

The identifier of the account requesting a setup pin.

Returns

Promise<string>

A promise that resolves to the setup pin string.


handleLogin()?

optional handleLogin(accountId, pin): Promise<void>

Asynchronously handles a login request.

Parameters

accountId

string

The identifier of the account to login.

pin

string

The setup pin for the account.

Returns

Promise<void>

A promise that resolves when the login request has been processed.


handleLogout()?

optional handleLogout(): Promise<void>

Asynchronously handles a logout request.

Returns

Promise<void>

A promise that resolves when the logout request has been processed.


handleReadStatus()?

optional handleReadStatus(): Promise<IStatus>

Asynchronously handles the read status operation.

Returns

Promise<IStatus>

A promise that resolves to the user account login status.


Last updated: May 13, 2026