Amazon Developer

as

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

KeplerScriptAccountLogin

Facilitates updating an application's login status.

Extends

  • KeplerTurboModule

Properties

setupAccountLoginServer

setupAccountLoginServer: () => Promise<Object>

Sets up the native AccountLoginServer.


updateStatus

updateStatus: (loginStatus: number, additionalData: string) => Promise<Object>

Update Login Status.


setHandlerForComponent

setHandlerForComponent: (readStatusHandler: (onSuccess: (loginStatus: number, additionalData: string) => void, onError: (msg: string) => void) => void, getSetupPinHandler: (accountId: string, onSuccess: (pin: string) => void, onError: (msg: string) => void) => void, loginHandler: (accountId: string, pin: string, onSuccess: () => void, onError: (msg: string) => void) => void, logoutHandler: (onSuccess: () => void, onError: (msg: string) => void) => void, componentInstance: Object) => Promise<Object>

Registers handlers for a specific component to execute when provider requests are received. Each handler receives HostCallbacks from native to respond directly.


setHandler

setHandler: (readStatusHandler: (onSuccess: (loginStatus: number, additionalData: string) => void, onError: (msg: string) => void) => void, getSetupPinHandler: (accountId: string, onSuccess: (pin: string) => void, onError: (msg: string) => void) => void, loginHandler: (accountId: string, pin: string, onSuccess: () => void, onError: (msg: string) => void) => void, logoutHandler: (onSuccess: () => void, onError: (msg: string) => void) => void) => Promise<Object>

Registers handlers for provider requests without a component instance (legacy path).


getMajorVersion

getMajorVersion: () => number

Gets the major version number.


getMinorVersion

getMinorVersion: () => number

Gets the minor version number.


getPatchVersion

getPatchVersion: () => number

Gets the patch version number.


Last updated: Jul 22, 2026