stormpath / stormpath-sdk-android

Android library for Stormpath
http://www.stormpath.com
Apache License 2.0
18 stars 15 forks source link

Add method to synchronously refresh access token. Add tests. #34

Closed grennis closed 7 years ago

grennis commented 7 years ago

This PR will add a method to Stormpath to synchronously refresh the access token. This enables use of the okhttp Authenticator class, and could be useful in other situations as well. There is a check to ensure callers do not attempt to call this on the UI thread, since it should only be called on a background thread. New tests are added to cover the operation.