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.
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.