Register for LWA
Log Out Users
Your website should provide a way for users to log out once they have logged in. Add the following link to your website where you would like a "Logout" prompt to appear:
After they select the logout option, you should delete any access tokens and refresh tokens associated with that user, and remove their profile information from the website. Your website should then present a login option.
amazon.Login.logout method to delete any cached tokens. For example:
Subsequent calls to
amazon.Login.authorize will present the login screen by default.