title: Saving Amazon Cognito user credentials without local storage
body: <p>I'm using Amazon Cognito for user login for a website with the Javascript SDK which uses local storage to save the user's credentials which are used for things like auto login. This doesn't work when running from a local file on your computer.</p>
  
  <p>Is it possible to direct the Javascript SDK to save user credentials through some other means instead of local storage when running a website locally?</p>
  
  <p>I've seen references to changing the storage object but I can't find any samples on how to actually implement a custom storage solution.
  <a href="https://github.com/aws/amazon-cognito-identity-js/pull/363" rel="noreferrer">https://github.com/aws/amazon-cognito-identity-js/pull/363</a></p>