Skip to content

v0.6.0 Release

Compare
Choose a tag to compare
@ganigeorgiev ganigeorgiev released this 24 Aug 17:42
· 181 commits to master since this release

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]