AccessTokenInterceptor

class AccessTokenInterceptor @Inject constructor(credentialProvider: CredentialProvider) : <ERROR CLASS> ERROR CLASS: Symbol not found for Interceptor

Interceptor used to add Bearer Token authentication headers to requests.

This interceptor adds the access token to the request headers for endpoints that require Bearer Token Authentication.

The token is fetched from CredentialProvider on every request so that the SDK never holds credential state internally.

Parameters

credentialProvider

Supplies the access token at request time.

Constructors

Link copied to clipboard
@Inject
constructor(credentialProvider: CredentialProvider)

Functions

Link copied to clipboard
open override fun intercept(chain: ERROR CLASS: Symbol not found for Interceptor.Chain): ERROR CLASS: Symbol not found for Response

Intercepts the request and adds the Bearer Token header.