Token exchange fails - 400 bad request

Hello,

I’ve recently migrated my second app to Shopify token exchange. Overall, it’s working fine for all users across both apps. However, I’ve noticed the Received an error response (400 Bad Request) from Shopify:
If you report this error, please include this id: 1fe904cc-ef3f-4d2e-8353-74c02e693bd6-1754050069 error, affecting one user.

Would anyone be able to explain what’s going on here? I use node @shopify/shopify-api version 11.12.0 shopify.auth.tokenExchange function.

Thank you!

I’ve managed to reproduce the issue. Token exchange doesn’t work, when opening the embedded app website in POS. Session tokens are issued by App Bridge v3.5.

Please note that this used to work via the authorization code grant. What’s the recommended approach here?

Thank you!

Hi @Galmis

Are you still seeing this issue?

Hi @Liam-Shopify

Yes, still seeing it.