v0.18.0 Release
-
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 })