Skip to content

Releases: storyblok/app-extension-auth

@storyblok/[email protected]

24 Jul 08:35
7ab569a
Compare
Choose a tag to compare

Migrating v1 to v2

The @storyblok/app-extension-auth v1 stored the access token in a cookie. However, in a future version of v2, the library will offer an adapter pattern, allowing you to store the access token elsewhere, such as in a dedicated database. The following breaking changes abstract the code to make this transition easier in the near future:

sessionCookieStoregetSessionStore

// from
import { sessionCookieStore } from '@storyblok/app-extension-auth'

// to
import { getSessionStore } from '@storyblok/app-extension-auth'

getSessionStore

const sessionStore = getSessionStore(authHandlerParams)({
  req: event.node.req,
  res: event.node.res,
})

The sessionStore created by sessionCookieStore now has three methods: get, put, and remove. The getAll method is no longer provided. If you believe the getAll method is still useful for your use case, please let us know by opening a GitHub issue.

The put and remove methods now return a Promise<boolean> instead of a Promise<void>.

AuthHandlerParams

import { authHandler } from '@storyblok/app-extension-auth'
const params: AuthHandlerParams = {
  // ...
}
authHandler(params)

The parameter AuthHandlerParams['cookieName'] has been renamed to AuthHandlerParams['sessionKey'].

Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]

@storyblok/[email protected]

15 Jul 13:57
2e0885b
Compare
Choose a tag to compare
Pre-release

What's Changed

  • feat: moving cookie related logic to cookieAdapter.ts by @BibiSebi in #42

Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]

@storyblok/[email protected]

09 Jul 15:20
a2aced7
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]

@storyblok/[email protected]

04 Jul 14:46
e1f6489
Compare
Choose a tag to compare
Pre-release

What's Changed

  • fix: introduce adapter for session storage by @BibiSebi in #38

This 2.0.0-beta.0 release introduces breaking changes. Please do not use this version in production. A more detailed changelog will be available in the upcoming stable v2 release.

Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]

@storyblok/[email protected]

25 Jun 15:17
a6cbba5
Compare
Choose a tag to compare

@storyblok/[email protected]

16 May 13:22
bfde1c3
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]

@storyblok/[email protected]

14 Feb 15:03
e4a3565
Compare
Choose a tag to compare

@storyblok/[email protected]

31 Jan 15:36
5369351
Compare
Choose a tag to compare

What's Changed

@storyblok/[email protected]

31 Jan 14:50
41c9f53
Compare
Choose a tag to compare

@storyblok/[email protected]

21 Sep 09:26
02c3a2b
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/storyblok/app-extension-auth/compare/@storyblok/[email protected]...@storyblok/[email protected]