isPreemptivelyRefreshBeforeExpiry property

bool get isPreemptivelyRefreshBeforeExpiry

Whether the preemptive refresh strategy is active.

Returns true if:

Implementation

bool get isPreemptivelyRefreshBeforeExpiry =>
    authHandler.usesAuth &&
    authOptions.refreshTokenExecutionType ==
        RefreshTokenStrategy.preemptivelyRefreshBeforeExpiry;