Skip to content

Commit bafe9f8

Browse files
authored
Merge pull request #1245 from codeigniter4/datamweb-docs-02
docs: correcting the typo in method name `generateHmacToken`
2 parents 492365d + eba30e2 commit bafe9f8

File tree

1 file changed

+2
-2
lines changed
  • docs/references/authentication

1 file changed

+2
-2
lines changed

docs/references/authentication/hmac.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ permissions the token grants to the user. Scopes are provided when the token is
119119
cannot be modified afterword.
120120

121121
```php
122-
$token = $user->gererateHmacToken('Work Laptop', ['posts.manage', 'forums.manage']);
122+
$token = $user->generateHmacToken('Work Laptop', ['posts.manage', 'forums.manage']);
123123
```
124124

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

128128
```php
129-
$token = $user->gererateHmacToken('Work Laptop', ['*']);
129+
$token = $user->generateHmacToken('Work Laptop', ['*']);
130130
```
131131

132132
During authentication, the HMAC Keys the user used is stored on the user. Once authenticated, you

0 commit comments

Comments
 (0)