Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Authentication issues when hosting on Fly.IO

Authentication issues when hosting on Fly.IO

midavis
Shopify Partner
9 0 1

I have an app that is deployed to the Fly.IO servers.  I am also connected to a Postgres database that is hosted there as well.  I am making API calls via a proxy from the frontend of my site to the backend.  The below code is causing issues.

 

const { admin } = await authenticate.public.appProxy(request);
_graphql = admin.graphql;
 
admin.graphql is undefined for some reason.  If I am on my local machine everything works fine, but when I had initially pushed this update out to Fly.IO I was having this issue.   If I go look in the Postgres database and the Session table there were no records.   The crazy thing is after about a day of this being deployed it just started working and indeed there was a record in the Session table.  
 
We go live in a few weeks and so I assume our store will get the offline_ prefix removed from it's name so I am worried this will happen again.
Replies 0 (0)