Skip to content

Commit 38cdd9e

Browse files
committed
Token: document way to create token with access to all packages
1 parent 88cd586 commit 38cdd9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,14 @@ Returns an array of team tokens.
191191

192192
#### Create a new team authentication token
193193
```php
194+
// Create a new token with access to all packages
195+
$token = $client->tokens()->create([
196+
'description' => 'New Team Token',
197+
'access' => 'read',
198+
'accessToAllPackages' => true,
199+
]);
200+
201+
// Create a new token with access to packages a team has access to
194202
$token = $client->tokens()->create([
195203
'description' => 'New Team Token',
196204
'access' => 'read',

0 commit comments

Comments
 (0)