apiClient method
ApiClient
apiClient({
- required ApiClientTransport apiClient,
- required ApiReader reader,
- bool logToFirebase = false,
Recreates an authentication state (usually done inside an isolate)
Implementation
ApiClient apiClient(
{required ApiClientTransport apiClient,
required ApiReader reader,
bool logToFirebase = false}) {
return ApiClient(
transport: apiClient,
basePaths: basePaths,
serializer: reader,
authentication: ApiKeyAuth('header', 'Authorization')
..apiKey = accessToken,
);
}