Bearer

constructor(tokenProvider: suspend () -> String?)(source)

Parameters

tokenProvider

Suspend lambda returning the current token. Called on every request, so token rotation is handled automatically (e.g. reading from a DataStore).