# Laravel Passport

[Source Code](https://github.com/nuxt-community/auth-module/blob/master/lib/providers/laravel.passport.js)

## Usage

```javascript
auth: {
  strategies: {
      'laravel.passport': {
        url: '...',
        client_id: '...',
        client_secret: '...'
      },
  }
}
```

Anywhere in your application logic:

```javascript
this.$auth.loginWith('laravel.passport')
```

💁 This provider is based on [oauth2 scheme](https://nuxt-community.gitbook.io/auth/docs/schemes/oauth2) and supports all scheme options.

### Obtaining `url`, `client_id` and `client_secret`

These options are **REQUIRED**. The `url` is the location of your Laravel application. To obtain the `client_id` and `client_secret`, create a new client app in your [Laravel app](https://laravel.com/docs/6.0/passport#managing-clients).
