Struggling with Shopify API node argument type error: How to fix?

Struggling with Shopify API node argument type error: How to fix?

mVanguard
Visitor
3 0 1

Good day everyone,
I am a beginner in the making of Shopify app and I couldn't figure out how to make the Shopify API node project work.

I am stuck at the OAuth process with the following error:

 

src/index.ts:62:92 - error TS2345: Argument of type 'Record<string, any>' is not assignable to parameter of type 'AuthQuery'.
  Type 'Record<string, any>' is missing the following properties from type 'AuthQuery': code, timestamp, state, shop

62                 const session = await Shopify.Auth.validateAuthCallback(request, response, query);
                                                                                              ~~~~~

 

 

following this tutorial: https://github.com/Shopify/shopify-api-node/blob/main/docs/usage/oauth.md

Does this error means something to you? I have been searching all over internet but couldn't understand what it means.

 

Thank you for your help!!

 

Replies 0 (0)