Skip to content

Commit e69b326

Browse files
[8.x] Add client credentials grant note (laravel#7526)
* Add client credentials grant note * Update passport.md * Update passport.md Co-authored-by: Taylor Otwell <[email protected]>
1 parent 2cf67bc commit e69b326

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

passport.md

+2
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,8 @@ Passport includes an [authentication guard](/docs/{{version}}/authentication#add
924924
//
925925
})->middleware('auth:api');
926926

927+
> {note} If you are using the [client credentials grant](#client-credentials-grant-tokens), you should use [the `client` middleware](#client-credentials-grant-tokens) to protect your routes instead of the `auth:api` middleware.
928+
927929
<a name="multiple-authentication-guards"></a>
928930
#### Multiple Authentication Guards
929931

0 commit comments

Comments
 (0)