buildClient method
Builds an API client to interact with the Corbado frontend API. Depending on the platform different headers will be set.
Implementation
Future<ApiClient> buildClient() async {
final client = ApiClient(basePath: _frontendAPI)
..addDefaultHeader('X-Corbado-Project-ID', _projectID);
final ua = await userAgent();
client.addDefaultHeader('User-Agent', ua);
return client;
}