Shopify OAuth Callback
Handles the OAuth callback from Shopify after user authorization. Exchanges the authorization code for an access token and stores it.
Query Parameters
Authorization code from Shopify
CSRF state parameter (must match the one from connect)
HMAC signature for verification
Response
Redirects to the frontend settings page with success or error status.
- Success:
/dashboard/settings?tab=connect&shopify=success
- Error:
/dashboard/settings?tab=connect&shopify=error&message=...