Android OKHttp Interceptor Extension (Optional)
Last updated
Was this helpful?
Last updated
Was this helpful?
The Authgear Android SDK provides an optional Okhttp
interceptor which handles everything from refreshing the access token to putting the access token in the header.
The extension is included in the SDK. Please refer to the above section for getting the SDK.
Configure OkHttpClient
to use AuthgearInterceptor
as follows:
The client would then include the access token in every request and refresh the access token when necessary before the requests.