How to fetch, store, refresh access tokens?

How to fetch, store, refresh access tokens?

  

Hi,

I am consuming a bunch of OAuth REST endpoints in a mobile app. For each REST API request, I am hitting the access token endpoint. I am sure there is a better way considering there aren't any session variables in mobile app. Please suggest.

Regards,

Prasanna CS

Store the tokens in local database?
Or in JavaScript variables (as the mobile applications are one page applications)?