OAuth constructor

OAuth({
  1. String? clientId,
  2. String? clientSecret,
  3. required String tokenUrl,
  4. String? accessToken,
})

Constructor

Implementation

OAuth(
    {this.clientId,
    this.clientSecret,
    required this.tokenUrl,
    this.accessToken}) {
  if (!((clientId != null && clientSecret != null) || accessToken != null)) {
    throw ApiException(
        0, "clientId and clientSecret or accessToken required");
  }
}