github pocketbase/js-sdk v0.18.0
v0.18.0 Release

latest releases: v0.26.2, v0.26.1, v0.26.0...
2 years ago
  • Added pb.backups.upload(data) action (available with PocketBase v0.18.0).

  • Added experimental autoRefreshThreshold option to auto refresh (or reauthenticate) the AuthStore when authenticated as admin.
    This could be used as an alternative to fixed Admin API keys.

    await pb.admins.authWithPassword("test@example.com", "1234567890", {
      // This will trigger auto refresh or auto reauthentication in case
      // the token has expired or is going to expire in the next 30 minutes.
      autoRefreshThreshold: 30 * 60
    })

Don't miss a new js-sdk release

NewReleases is sending notifications on new releases.