Pre requisites

This package requires you to install Laravel Passport prior to use it

Installation

To install run

composer require joselfonseca/lighthouse-graphql-passport-auth

ServiceProvider will be attached automatically

Run this command to publish the migration, schema and configuration file

php artisan vendor:publish --provider="Joselfonseca\LighthouseGraphQLPassport\Providers\LighthouseGraphQLPassportServiceProvider"

Add the following env vars to your .env from the oauth_clients and the password grant client

PASSPORT_CLIENT_ID=
PASSPORT_CLIENT_SECRET=

You are done with the installation!