GetAccessTokenUseCase class

Constructors

GetAccessTokenUseCase(PreferencesDatasource _preferencesDatasource, RequestAccessTokenUseCase _requestAccessTokenUseCase, SignOutUseCase _signOutUseCase, CacheApiResponseUseCase _cacheApiResponseUseCase)

Properties

hashCode int
The hash code for this object.
no setterinherited
REQUEST_DELTA_IN_MILLISECONDS int
This Delta is used to avoid errors. The expiration time will be precise. However, we're not accounting for server response delay, which could range from 1 to any seconds. We believe that 60 seconds is a good estimate.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(dynamic onComplete(ApiResponseModel? apiResponseModel), dynamic onErrorRefreshTokenExpired(String), {dynamic forceNewToken = false}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited