auth-vir - v3.1.0
    Preparing search index...

    Function isSessionRefreshReady

    • Determines if enough time has passed since the JWT was issued to start refreshing the session.

      Visually, this check looks like this:

       I====R===========E
      
      • I = JWT issued time (from the JWT's iat claim)
      • R = session refreshing is available now (I + sessionRefreshStartTime)
      • E = JWT expiration
      • = between R and E = the time frame in which the return value is true.

      Parameters

      • __namedParameters: {
            jwtIssuedAt: Readonly<FullDate<UtcTimezone>>;
            now?: Readonly<{}>;
            sessionRefreshStartTime: Readonly<AnyDuration>;
        }
        • jwtIssuedAt: Readonly<FullDate<UtcTimezone>>

          When the JWT was issued (iat claim).

        • Optionalnow?: Readonly<{}>

          The current time.

        • sessionRefreshStartTime: Readonly<AnyDuration>

          How long after JWT issuance before refreshing is available.

      Returns boolean