isPreemptivelyRefreshBeforeExpiry property
bool
get
isPreemptivelyRefreshBeforeExpiry
Whether the preemptive refresh strategy is active.
Returns true if:
- The client currently has authorization headers set
- The strategy is set to RefreshTokenStrategy.preemptivelyRefreshBeforeExpiry
Implementation
bool get isPreemptivelyRefreshBeforeExpiry =>
authHandler.usesAuth &&
authOptions.refreshTokenExecutionType ==
RefreshTokenStrategy.preemptivelyRefreshBeforeExpiry;