RyanDawkes
RyanDawkes

Reputation: 47

Redirect to undefined link after authentication

When I try to access my Shopify App in localhost, it undergoes an auth process but then I get redirect to this address: https://undefined/admin/oauth/authorize...

Does anyone know why this happens? I followed this tutorial if that helps

Upvotes: 1

Views: 1275

Answers (1)

Lee Klopfers
Lee Klopfers

Reputation: 31

This happened to me as well when I just did the tutorial. This is likely an auth problem.

In my case I didn't put the SHOPIFY_API_KEY and SHOPIFY_API_SECRET in apostrophes

so instead of:

SHOPIFY_API_KEY=xxxxxxxxxxxxxx
SHOPIFY_API_SECRET=shpss_xxxxxxxxxx

You have to type:

SHOPIFY_API_KEY="xxxxxxxxxxxxxx"
SHOPIFY_API_SECRET="shpss_xxxxxxxxxx"

Upvotes: 3

Related Questions