AuthConfig.apiKey constructor
Creates an API key authentication configuration.
apiKey - API key for authentication.
scopes - Scopes for the API key.
Implementation
factory AuthConfig.apiKey(String apiKey,
{List<ApiScope> scopes = const [ApiScope.read]}) {
return AuthConfig(
token: apiKey,
method: AuthMethod.apiKey,
scopes: scopes,
);
}