I was hoping someone could help me, I integrated Amazon Login into my android app, and I can successfully retrieve the token using getToken(), but from what I can tell, this appears to be an access token (starts with "Atza") and not an authorization code, and what I really need to be able to do is validate the authorization code on my backend server to verify the user's identity.
When I make a post (as described here: https://images-na.ssl-images-amazon.com/images/G/01/lwa/dev/docs/website-developer-guide._TTH_.pdf):
POST /auth/o2/token HTTP/l.l Host: api.amazon.com Content-Type: application/x-www-form-urlencoded;charset=UTF-8
grant_type=authorization_code &code=SplxlOBezQQYbYS6WxSbIA &client_id=foodev &client_secret=Y76SDl2F
I get back "The request has an invalid parameter : code"