Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ilya Vysotski
Koa Shopify Auth
Commits
4ae1efc3
Unverified
Commit
4ae1efc3
authored
Oct 22, 2020
by
Tim Anema
Committed by
GitHub
Oct 22, 2020
Browse files
Merge pull request #29 from devjones/master
Fix inconsistency in authentication path prefix to remove trailing slash
parents
23cb865c
ef09600b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/auth/client/request-storage-access.ts
View file @
4ae1efc3
// Copied from https://github.com/Shopify/shopify_app
const
requestStorageAccess
=
(
shop
:
string
,
prefix
=
'
/
'
)
=>
{
const
requestStorageAccess
=
(
shop
:
string
,
prefix
=
''
)
=>
{
return
`(function() {
function redirect() {
var targetInfo = {
myshopifyUrl: "https://
${
encodeURIComponent
(
shop
)}
",
hasStorageAccessUrl: "
${
prefix
}
auth/inline?shop=
${
encodeURIComponent
(
hasStorageAccessUrl: "
${
prefix
}
/
auth/inline?shop=
${
encodeURIComponent
(
shop
,
)}
",
doesNotHaveStorageAccessUrl: "
${
prefix
}
auth/enable_cookies?shop=
${
encodeURIComponent
(
doesNotHaveStorageAccessUrl: "
${
prefix
}
/
auth/enable_cookies?shop=
${
encodeURIComponent
(
shop
,
)}
",
appTargetUrl: "
${
prefix
}
?shop=
${
encodeURIComponent
(
shop
)}
"
appTargetUrl: "
${
prefix
}
/
?shop=
${
encodeURIComponent
(
shop
)}
"
}
if (window.top == window.self) {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment