You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: passport.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@
25
25
-[Passing The Access Token](#passing-the-access-token)
26
26
-[Token Scopes](#token-scopes)
27
27
-[Defining Scopes](#defining-scopes)
28
+
-[Default Scope](#default-scope)
28
29
-[Assigning Scopes To Tokens](#assigning-scopes-to-tokens)
29
30
-[Checking Scopes](#checking-scopes)
30
31
-[Consuming Your API With JavaScript](#consuming-your-api-with-javascript)
@@ -654,6 +655,15 @@ You may define your API's scopes using the `Passport::tokensCan` method in the `
654
655
'check-status' => 'Check order status',
655
656
]);
656
657
658
+
<aname="default-scope"></a>
659
+
### Default Scope
660
+
661
+
If a client decides to omit the scope the server still choose to set a default scope. You can achieve setting a default scope by using the `setDefaultScope`. Values need to be separated with a space or be passed as an array:
0 commit comments