access token expire immediately or valid for one time

I am trying to fetch data from Sugar through API so after getting OAtuth token from sugar when I call an API e.g Accounts this works fine but after that, if I call another API with the same token it gives the error "invalid_grant" with a message "Your authentication token is invalid."

Parents Reply
  • Thanks for your response I don't use it at the same time. I develop locally that works fine, then deploy on AWS then this problem appears? As I can see a lot of discussions at this forum about invalid grant but that is for login through the portal.

    It looks issue of saving the session at sugar end

Children