// require store/spree_frontend
var SpreeAmazonPayments = {

}

$(function(){
	
	// Post form before authentication request to amazon
	if(window.location.pathname === "/cart"){
		$("#AmazonPayButton img").click(function(e){
			$.post('/cart', $("#update-cart").serialize() + "&checkout");			
		});
	}

	// Ensure clicking the logout button also removes amazon token
	$("#logout-lnk").click(function(e){
		document.cookie = "amazon_Login_accessToken=; expires=Thu, 01 Jan 1970 00:00:00 GMT";
	});
})
@@ -434,19 +434,19 @@
 gin_
-accessToken
+state_cache
 =; e

Fix amazon token removal