# Shopify Single Signon Passing Variables

**URL:** <https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915>\
**Category:** Ask for Help\
**Created:** [March 30, 2023, 10:46pm UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915 "2023-03-30T22:46:41Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmacman](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jmacman](https://community.glideapps.com/u/jmacman)\
**Post date:** [March 30, 2023, 10:46pm UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/1 "2023-03-30T22:46:41Z")

</div>

I’m coming from the Shopify world of custom apps. Glide is so good that I could potentially eliminate all of my Shopify apps by building my own apps and integrating into Shopify. I’m using Airtable and Integromat, but I still haven’t figure out how to pass variables to glide via JavaScript., without having the user login yet again to Glide.

The goal is that when a user connects to a glide page, that the login email is passed to Glide based on the user being logged into Shopify. Then I use Glide to filter the information to show, but is there now creative way to pass variable or login information to glide?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 31, 2023, 12:42am UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/2 "2023-03-31T00:42:48Z")

</div>

Do you mean when the user logs in to your Shopify, that user should have a profile created on your Glide App? What variables do you want to pass?

---

<div class="post-metadata">

**Author:** ![jmacman](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jmacman](https://community.glideapps.com/u/jmacman)\
**Post date:** [March 31, 2023, 12:53am UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/3 "2023-03-31T00:53:00Z")

</div>

Actually I already know how to do that through Integromat. I want Glide to receive the email address of whoever is logged in from Shopify. I want a filtered portal in Glide that displays the users past orders in a Kanban view, but I don’t want the user to have to login to Shopify then login to Glide. I want to pass the users email from Shopify to Glide so the user doesn’t have to login to see their info. Shopify has an environment variable named {{customer.email}} and I want to pass that info to Glide

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 31, 2023, 1:01am UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/4 "2023-03-31T01:01:07Z")

</div>

If you can trigger it every time a user logs in to Shopify, then you would be able to add a row to your Glide database, I assume. Add a step to check if the email has already existed, and only add a row if it has not been added.

---

<div class="post-metadata">

**Author:** ![jmacman](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jmacman](https://community.glideapps.com/u/jmacman)\
**Post date:** [March 31, 2023, 1:17am UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/5 "2023-03-31T01:17:17Z")

</div>

Yes, I have a Shopify Webhook that sends to Integromat every time a user logs in. I can easily update the Glide or Airtable database and add a row, but how will Glide know exactly who is logged in during the session, given that multiple users can be logged in at a given time.

The idea is that the use clicks a link where the Glide app resides and someway I want to pass the variable {{customer.email}} to the app so that the app knows which user is logged in already.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 31, 2023, 1:21am UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/6 "2023-03-31T01:21:04Z")

</div>

> [@jmacman](#):
>
> but how will Glide know exactly who is logged in during the session

Can you explain more on what you mean by a “session” here?

---

<div class="post-metadata">

**Author:** ![jmacman](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jmacman](https://community.glideapps.com/u/jmacman)\
**Post date:** [March 31, 2023, 1:23am UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/7 "2023-03-31T01:23:02Z")

</div>

A session is the length of time when a user is logged in and either logs out or is no longer active.

---

<div class="post-metadata">

**Author:** ![jmacman](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jmacman](https://community.glideapps.com/u/jmacman)\
**Post date:** [April 11, 2023, 2:30pm UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/8 "2023-04-11T14:30:43Z")

</div>

Just following-up with this question.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 11, 2023, 2:46pm UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/9 "2023-04-11T14:46:02Z")

</div>

There is no way to automatically sign a user into a Glide app. The best you can do is send a magic link to the user directly from the builder, but there is no automated way to do that with your scenario.

---

<div class="post-metadata">

**Author:** ![jmacman](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jmacman](https://community.glideapps.com/u/jmacman)\
**Post date:** [April 11, 2023, 2:49pm UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/10 "2023-04-11T14:49:12Z")

</div>

Can I automate the creation of a magic link via API. If so, then I could dynamically create a link for the user with the magic link, because the email address will be known from the Shopify environment variables `{{customer.email}}`, so I can give the logged in user the correct magic link.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 11, 2023, 2:50pm UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/11 "2023-04-11T14:50:06Z")

</div>

> [@Jeff\_Hager](#):
>
> no automated way to do that with your scenario.

.

---

<div class="post-metadata">

**Author:** ![jmacman](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jmacman](https://community.glideapps.com/u/jmacman)\
**Post date:** [April 11, 2023, 2:52pm UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/12 "2023-04-11T14:52:49Z")

</div>

@Jeff_Hager Thanks Jeff! Been researching this for months and seems there is no way even with the new Actions. So sad, because I could eliminate 5-6 Shopify apps by using Glide and would really supercharge my Shopify store!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 12, 2023, 2:53pm UTC](https://community.glideapps.com/t/shopify-single-signon-passing-variables/59915/13 "2023-04-12T14:53:04Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
