provideOkHttpClient

fun provideOkHttpClient(httpLoggingInterceptor: ERROR CLASS: Symbol not found for HttpLoggingInterceptor, credentialProvider: ERROR CLASS: Symbol not found for CredentialProvider, tokenAuthenticator: TokenAuthenticator, config: ERROR CLASS: Symbol not found for ApiConfig): ERROR CLASS: Symbol not found for OkHttpClient

Provides the singleton OkHttpClient wired with:

  • Logging interceptor

  • BasicAuthenticationInterceptor (adds Basic Auth when no access token is present)

  • AccessTokenInterceptor (adds Bearer token when one is available)

  • TokenAuthenticator (refreshes the token automatically on 401)