authTokenProvider property

String? Function()? authTokenProvider
getter/setter pair

Dynamic provider callback resolving the current Bearer token at request time.

Useful for reactive signal stores where tokens are refreshed asynchronously. Takes precedence over authToken.

client.authTokenProvider = () => sessionStore.token.value;

Implementation

String? Function()? authTokenProvider;