meteor-shopify icon indicating copy to clipboard operation
meteor-shopify copied to clipboard

Error: Invalid 'auth'. Needs 'password' or 'secret' or 'access_token'.

Open Sky-bits opened this issue 2 years ago • 3 comments

Error: Invalid 'auth'. Needs 'password' or 'secret' or 'access_token'. W20220804-17:53:26.680(5.5)? (STDERR) at Object.Shopify.addKeyset (packages/froatsnook_shopify.js:2490:15)

hi have odd app now getting the Error

@froatsnook can you help on that.

Sky-bits avatar Aug 04 '22 12:08 Sky-bits

Check out the code here. Check what you're passing to the addKeyset function. If I had to guess I'd say that you're using something from Meteor.settings which is not in your settings.json.

froatsnook avatar Aug 04 '22 14:08 froatsnook

@froatsnook I am passing the meteor --settings settings.json with key and secrete key as per your example i am passing the correct data.


{
	"public":{
		"api_key":"7996a84xxxxxxxxx",
		"root_url":"https://xxxxxxxxx218.ngrok.io"
	},
	"secret":"741a3bxxxxxxxxxxxxxxxxxx"
}

what was the is the missing ?

https://shopify.dev/apps/tools/embedded-app-sdk/methods this warring app not working

Sky-bits avatar Aug 04 '22 14:08 Sky-bits

@froatsnook i have public app

// @example
//     // For public apps that haven't been authenticated yet
//     Shopify.addKeyset("public app", {
//         api_key: "Your API Key",
//         secret: "Your API Shared Secret"
//     });
//

Sky-bits avatar Aug 04 '22 14:08 Sky-bits