Trails Packages
    Preparing search index...

    Control the automatic refreshing of authentication tokens.

    interface RefreshOptions {
        autoRefresh?: boolean;
        interval?: number;
        timeLeft?: number;
    }
    Index

    Properties

    autoRefresh?: boolean

    Whether token refreshing should happen automatically.

    Default: true.

    interval?: number

    The interval (in milliseconds) at which tokens are checked for validity. If the token's remaining lifetime is too short (see timeLeft), then the token is refreshed.

    Default: 10000 milliseconds.

    timeLeft?: number

    The minimum required lifetime during token validity checks. Tokens that expire within timeLeft are refreshed.

    Default: 60 seconds.