Vana SDK - v2.2.2
    Preparing search index...

    Function validateGrantExpiry

    • Validates that a grant has not expired.

      Parameters

      • grantFile: GrantFile

        The grant file to check. Must include expiry timestamp if time-limited.

      • OptionalcurrentTime: number

        Optional time override for testing. Unix timestamp in seconds. Defaults to current time.

      Returns void

      If grant has expired. Request a new grant from the data owner.

      validateGrantExpiry(grantFile);
      // Throws if current time > grantFile.expires