Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add migration section for v2 #40

Merged
merged 3 commits into from
Jul 9, 2024
Merged

docs: add migration section for v2 #40

merged 3 commits into from
Jul 9, 2024

Conversation

eunjae-lee
Copy link
Contributor

What?

This PR adds a migration section to the README.

@eunjae-lee eunjae-lee requested a review from BibiSebi July 5, 2024 09:48
README.md Outdated
@@ -2,28 +2,65 @@

A JavaScript library for managing authentication for [Storyblok](https://www.storyblok.com) apps.

## Migrating v1 to v2

The `@storyblok/app-extension-auth` v1 stored the access token in a cookie. However, v2 now offers an adapter pattern, allowing you to store the access token elsewhere, such as in a dedicated database. And here are the breaking changes:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if this is a bit misleading, as we abstracted the logic to the adapter pattern however the storage inside a DB and enabling passing a custom adapter is not possible at the moment right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if I follow you. How is it not possible?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently the user cannot pass their own adapter to authHandler or the sessionStore.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I didn't realize we removed adapter from AuthHandlerParams. I'll modify this.

README.md Outdated Show resolved Hide resolved
docs: update
@BibiSebi BibiSebi self-requested a review July 9, 2024 14:15
@BibiSebi BibiSebi merged commit 4eacefd into main Jul 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants