redchamps/bigcommerce-oauth-laravel

BigCommerce App authentication made easy.

1.0.4 2024-04-27 07:12 UTC

This package is auto-updated.

Last update: 2024-11-27 08:24:44 UTC


README

Installation

  • composer require redchamps/bigcommerce-oauth-laravel
  • php artisan vendor:publish --tag=bigcommerce-auth-migrations
  • php artisan migrate

Update to .env

  • BC_CLIENT_ID=BigCommerce-App-Client-ID
  • BC_SECRET=BigCommerce-App-Secret-ID
  • BC_REDIRECT_PATH=/

Update to routes/web.php

use CronixWeb\BigCommerceAuth\BigAuthRoutes;

BigAuthRoutes::register();

Callbacks

  • domain.com/auth/install
  • domain.com/auth/load

config/session.php

  • Add true in SESSION_SECURE_COOKIE default value
  • Change same_site => lax to none

Optional view file publish

  • php artisan vendor:publish --tag=bigcommerce-auth-views