as

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

GetTokenCallbacks

GetTokenCallbacks defines a set of callback functions for token-related events.

Properties

getTokenFailure()

getTokenFailure: (error_msg) => void

Callback function invoked when there's a failure in obtaining a token.

Parameters

error_msg

string

The error message indicating the reason for the failure.

Returns

void


getTokenSuccess()

getTokenSuccess: (access_token) => void

Callback function invoked when a token is successfully obtained.

Parameters

access_token

string

The access token obtained successfully.

Returns

void


Last updated: Sep 30, 2025