@@ -7,7 +7,7 @@ access to your API. These keys typically have a very long expiration time, often
77
88These are also suitable for use with mobile applications. In this case, the user would register/sign-in
99with their email/password. The application would create a new access token for them, with a recognizable
10- name, like John's iPhone 12, and return it to the mobile application, where it is stored and used
10+ name, like " John's iPhone 12" , and return it to the mobile application, where it is stored and used
1111in all future requests.
1212
1313!!! note
@@ -67,13 +67,13 @@ $token = $user->generateHmacToken('Work Laptop');
6767```
6868
6969This creates the keys/tokens using a cryptographically secure random string. The keys operate as shared keys.
70- This means they are stored as-is in the database. The method returns an instance of
71- ` CodeIgniters\Shield\Authentication\Entities\AccessToken ` . The field ` secret ` is the '_ key _ ' the field ` rawSecretKey ` is
72- the shared '_ secretKey _ '. Both are required to when using this authentication method.
70+ The ' ** key ** ' is stored as plain text in the database, the ' ** secretKey ** ' is stored encrypted . The method returns an
71+ instance of ` CodeIgniters\Shield\Authentication\Entities\AccessToken ` . The field ` secret ` is the '** key ** ' the field
72+ ` rawSecretKey ` is the shared '** secretKey ** '. Both are required to when using this authentication method.
7373
7474** The plain text version of these keys should be displayed to the user immediately, so they can copy it for
75- their use.** It is recommended that after that only the '_ key _ ' field is displayed to a user. If a user loses the
76- '_ secretKey _ ', they should be required to generate a new set of keys to use.
75+ their use.** It is recommended that after that only the '** key ** ' field is displayed to a user. If a user loses the
76+ '** secretKey ** ', they should be required to generate a new set of keys to use.
7777
7878``` php
7979$token = $user->generateHmacToken('Work Laptop');
0 commit comments