AuthInterceptor

class AuthInterceptor : Interceptor

Interceptor for adding the Authorization header with the user token to outgoing network requests.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun intercept(chain: Interceptor.Chain): Response

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