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
Skip to main content
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 modified on October 2, 2025