# Laravel Passport

If you wish to use this package alongside Laravel Passport, you may encounter the following error message when attempting to authorise with Passports OAuth server:

```log
Driver [authorize] not supported
```

This is because Socialstream registers routes using the `oauth/{provider}` structure. This conflicts with Laravel Passports `oauth/authorize` route. To solve this, you may set a route `prefix` in your applications `socialstream.php` config file:

```
'prefix' => 'auth',
```

Alternatively, if you wish to keep the prefix Socialstream uses, you may edit Passport's route prefix in its config file. If you haven't already, publish Passport's config file:

```sh
php artisan vendor:publish --tag=passport-config
```

Add the following to `config/passport.php`:

```php
    /*
    |--------------------------------------------------------------------------
    | Path prefix
    |--------------------------------------------------------------------------
    |
    | Default is 'oauth'.
    |
    */

    'path' => 'passport-oauth',
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.socialstream.dev/guides/laravel-passport.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
