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

Remove the use of cookies for shopOrigin #493

Merged
merged 2 commits into from
Dec 16, 2020
Merged

Conversation

hannachen
Copy link
Contributor

@hannachen hannachen commented Dec 10, 2020

WHY are these changes introduced?

Browsers are slowly dropping 3rd-party cookie support, so partners shouldn't use cookies as the method to store shopOrigin when building a new App Bridge app. Instead, developers should be getting the value of shop from URL search parameters.

Related to https://github.com/Shopify/app-bridge/issues/1742 https://github.com/Shopify/shopify-dev/pull/4643

WHAT is this pull request doing?

This PR removes boilerplate code using 3rd-party cookies and cookies-related packages. It also shows partners how to use Next.js to retrieve the shop value from the server-side.

Also, clean up some unused imports.

@hannachen hannachen changed the title Remove the usage of cookies for shopOrigin Remove the use of cookies for shopOrigin Dec 10, 2020
Copy link
Collaborator

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

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

I think this all makes sense, save for the one comment!

.env.example Outdated Show resolved Hide resolved
@hannachen hannachen requested a review from a team December 10, 2020 17:22
@paulomarg
Copy link
Collaborator

🎩 ed this by tweaking the CLI to check this branch out, I was able to create the app, run it and perform OAuth with no problems. LGTM!

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