Hi all, I’m building a React Native app using Customer Account API for auth (https://shopify.dev/docs/api/customer#authentication).
I am able to get the login url (https://shopify.dev/docs/api/customer#step-authorization) and retrieve the code from the redirect. But when I tried using the code to request the access token (https://shopify.dev/docs/api/customer#step-obtain-access-token) from the React Native app, it always returns 401 and the www-authenticate header says
“error="invalid_token",error_description="The access token provided is expired, revoked, malformed or invalid for other reasons."”
So I’m wondering if it could be because the Token request is from the React Native environment, so the Javascript origin isn’t matching something. If so, does anyone know any workaround? Thanks in advance
Client type is Public btw