atinux / nuxt-auth-utils

Add Authentication to Nuxt applications with secured & sealed cookies sessions.
MIT License
973 stars 91 forks source link

feat: add laravel passport provider #264

Open rhoseno98 opened 3 weeks ago

rhoseno98 commented 3 weeks ago

This PR adds a generic provider for Laravel passport oauth. baseURL for your laravel app, userURL: path get user from your laravel app.

create clientId and clientSecret using: php artisan passport:client

Feedback welcome

atinux commented 3 weeks ago

From what I see, this seems to be a generic OAuth Provider, wondering if we should just have defineOAuthEventHandler that need to get config directly to work

rhoseno98 commented 2 weeks ago

yes, here to minimize the repetitive functions for access to the laravel passport provider. so that the configuration can be simpler