intercept

open override fun intercept(chain: Interceptor.Chain): Response

Intercepts the network request and adds the Authorization header with the user token if available.

Return

The Response after processing the intercepted request.

Parameters

chain

The Interceptor.Chain representing the chain of interceptors.