Pros:
shopify:refresh-offline-tokens Artisan command (PR #497) simplifies compliance with Shopify’s expiring token policy, reducing manual intervention.Cons:
shopify:refresh-offline-tokens command introduces operational overhead for teams unfamiliar with Laravel’s Artisan or queue systems.redis, database) and connection targeting (e.g., queue:work --queue=shopify), but assumes existing queue infrastructure.offline_access_token_expires_at was previously unset.shopify:refresh-offline-tokens without queue targeting may overwhelm a single server. Defaults to default queue; explicit targeting (e.g., --queue=shopify) is recommended.shops table migration complete (e.g., offline_access_token_expires_at populated)?shopify:refresh-offline-tokens command in deployment scripts or cron jobs.
* * * * * php artisan shopify:refresh-offline-tokens --queue=shopify
shopify) for token refreshes to isolate workloads.BillableMiddleware and ShopifyAuthMiddleware for escaped URL compliance.<a href="{{ $redirectUrl }}"> → <a href="{{ urlencode($redirectUrl) }}">).access_token_expired errors in production.shops table has offline_access_token_expires_at populated (run migrations if needed).composer require kyon147/laravel-shopify:^27.1.0.php artisan vendor:publish --tag=shopify-config..env:
QUEUE_CONNECTION=redis
SHOPIFY_QUEUE_CONNECTION=shopify
/auth/shopify/callback).php artisan shopify:refresh-offline-tokens --queue=shopify.access_token_expired errors.offline_access_token_expires_at must be set for proactive refreshes.config/shopify-app.php to enable expiring tokens:
'expiring_offline_tokens' => true,
offline_access_token_expires_at is missing.// In a service provider or config
'queue_connection' => env('SHOPIFY_QUEUE_CONNECTION', 'default'),
/api/shopify/webhooks).How can I help you explore Laravel packages today?