Skip to content

Commit

Permalink
Merge pull request #1185 from grimpirate/develop
Browse files Browse the repository at this point in the history
docs: typo fix in method name
  • Loading branch information
datamweb authored Aug 26, 2024
2 parents 918051a + 73df536 commit dee51ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/references/authentication/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ permissions the token grants to the user. Scopes are provided when the token is
cannot be modified afterword.

```php
$token = $user->gererateAccessToken('Work Laptop', ['posts.manage', 'forums.manage']);
$token = $user->generateAccessToken('Work Laptop', ['posts.manage', 'forums.manage']);
```

By default a user is granted a wildcard scope which provides access to all scopes. This is the
same as:

```php
$token = $user->gererateAccessToken('Work Laptop', ['*']);
$token = $user->generateAccessToken('Work Laptop', ['*']);
```

During authentication, the token the user used is stored on the user. Once authenticated, you
Expand Down

0 comments on commit dee51ee

Please sign in to comment.