Skip to content

@onlyworlds/sdk 4.79.0

Choose a tag to compare

@github-actions github-actions released this 26 Oct 12:02
· 407 commits to main since this release

Added

  • revokeWorldKey(worldId, keyId, { signal, keepalive }): both go to fetch as given. With keepalive: true a browser finishes the revoke after the tab that sent it closes, so a page can revoke its key on Sign out and close at once; a signal (for example AbortSignal.timeout(5000)) puts a time limit on it, and an abort rejects with an OwNetworkError whose cause2 is the abort. A dead account token is a 401 (err.isAuthError), and then the key was not revoked. An unknown option is a TypeError before anything is sent.
  • request() takes signal and keepalive, passed to fetch as given and sent only when given.