AuthTokenProvider typedef

AuthTokenProvider = Future<String?> Function()

Supplies the access token for the request being built.

A function rather than a reference to the auth service: the transport must not depend on auth, or the two import each other and neither can be constructed - or tested - without the other. initializeAppstraxServices wires the real one in.

Implementation

typedef AuthTokenProvider = Future<String?> Function();