Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

koa-shopify-auth: update redirection page to use App Bridge action #1242

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

tylerball
Copy link
Contributor

@tylerball tylerball commented Jan 22, 2020

Description

Fixes https://github.com/Shopify/app-bridge/issues/1410

Type of change

This PR updates the redirection script in koa-shopify-auth to use the App Bridge Redirect action instead of a bare postMessage call. I've 🎩ed this in Safari.

cc @Shopify/app-bridge

  • koa-shopify-auth Patch: Bug/ Documentation fix (non-breaking change which fixes an issue or adds documentation)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above

Copy link
Contributor

@katiedavis katiedavis left a comment

Choose a reason for hiding this comment

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

Great!

data = JSON.stringify({
message: 'Shopify.API.remoteRedirect',
data: { location: '${redirectTo}' }
var AppBridge = window['app-bridge'];
Copy link
Member

Choose a reason for hiding this comment

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

Looks great, is there any tests for this util?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nothing for this particular script, all this file does is render a route with this script to redirect the user out of the iframe in Safari so we can set a cookie.

@tylerball tylerball merged commit 5cd1e14 into master Jan 23, 2020
@tylerball tylerball deleted the koa-shopify-auth/app-bridge branch January 23, 2020 23:14
@michenly michenly temporarily deployed to production January 24, 2020 19:24 Inactive
@marutypes marutypes temporarily deployed to gem January 30, 2020 21:15 Inactive
@helloneele helloneele deployed to beta-test-memory-leak-fix February 13, 2020 19:05 Active
@vsumner vsumner deployed to just-use-act-beta February 14, 2020 16:44 Active
@helloneele helloneele deployed to beta-test-reacti18n-memory-leak-fix February 20, 2020 20:41 Active
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants