v0.6.1 Release
Changes
- Updated the
client.authStore
declaration fromAuthStore | BaseAuthStore
to justBaseAuthStore
to normalize the access to the cookies andonChange
helper methods [#27] (thanks @ollema)
BaseAuthStore
.
From now custom auth stores should always implements/extends BaseAuthStore
(or any of its derivative classes, eg. LocalAuthStore
).
Or in other words, if you have previously used:
class CustomStore { ... }
// or
class CustomStore implements AuthStore { ... }
now it should be converted to:
import PocketBase, { BaseAuthStore } from "pocketbase";
class CustomStore extends BaseAuthStore { ... }