Globus SDK for JavaScript
    Preparing search index...

    Class TokenManager

    Index
    isTokenExpired: (
        token: StoredToken | null,
        augment?: number,
    ) => boolean | undefined = isTokenExpired

    Type Declaration

      • (token: StoredToken | null, augment?: number): boolean | undefined
      • Determines whether or not a stored token is expired.

        Parameters

        • token: StoredToken | null

          The token to check.

        • augment: number = 0

          An optional number of milliseconds to add to the current time when checking the expiration, e.g., 30_000 to determine whether the token will be expired 30 seconds from now.

        Returns boolean | undefined

        true if the token is expired, false if it is not expired, and undefined if the expiration status cannot be determined based on the token's metadata. This can happen if the token is missing the __metadata field or the expires field.