v0.6.0 Release
Changes
-
(minor breaking) Changed the TypeScript AuthStore model definition from
User|Admin|{}
toUser|Admin|null
-
Added 2 new helper methods to the
BaseAuthStore
for easier cookie management in case of SSR [#15]:// update the store with the parsed data from the cookie string client.authStore.loadFromCookie('pb_auth=...'); // exports the store data as cookie, with option to extend the default SameSite, Secure, HttpOnly, Path and Expires attributes // output: 'pb_auth=...' client.authStore.exportToCookie({ httpOnly: false });
-
Updated the README and added some notes and examples (SvelteKit, Nuxt, Next.js) for SSR integration [#15]