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

latest releases: v0.26.2, v0.26.1, v0.26.0...
3 years ago

Changes

  • (minor breaking) Changed the TypeScript AuthStore model definition from User|Admin|{} to User|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]

Don't miss a new js-sdk release

NewReleases is sending notifications on new releases.