Member Junction
    Preparing search index...

    Interface CredentialExpirationEvaluation

    The result of evaluating a credential's expiry against the clock.

    interface CredentialExpirationEvaluation {
        daysUntilExpiration: number;
        expiresAt: Date;
        msUntilExpiration: number;
        status: CredentialExpirationStatus;
        usable: boolean;
        withinGrace: boolean;
    }
    Index

    Properties

    daysUntilExpiration: number

    Whole days until expiry, rounded away from zero, so a credential with eight hours left reports 1 rather than 0. Negative once expiry has passed (-2 means "expired two days ago"). Null when there is no expiry.

    expiresAt: Date

    The normalized expiry instant, or null when the credential never expires (or carried an unparseable value — see EvaluateExpiration).

    msUntilExpiration: number

    Milliseconds until expiry. Negative once expiry has passed. Null when there is no expiry.

    Lifecycle state relative to now.

    usable: boolean

    Whether the credential may be handed to a caller under the configured policy. False only for an expired credential under 'block' that has exhausted its grace period.

    withinGrace: boolean

    True when the credential is expired but still inside the configured grace period. Always false when the credential is not expired.