@@ -54,9 +54,9 @@ To use JWT Authentication, you need additional setup and configuration.
5454
5555 You need to add the following constants:
5656 ```php
57- public const RECORD_LOGIN_ATTEMPT_NONE = 0; // Do not record at all
58- public const RECORD_LOGIN_ATTEMPT_FAILURE = 1; // Record only failures
59- public const RECORD_LOGIN_ATTEMPT_ALL = 2; // Record all login attempts
57+ public const RECORD_LOGIN_ATTEMPT_NONE = 0; // Do not record at all
58+ public const RECORD_LOGIN_ATTEMPT_FAILURE = 1; // Record only failures
59+ public const RECORD_LOGIN_ATTEMPT_ALL = 2; // Record all login attempts
6060 ```
6161
6262 You need to add JWT Authenticator:
@@ -65,20 +65,20 @@ To use JWT Authentication, you need additional setup and configuration.
6565
6666 // ...
6767
68- public array $authenticators = [
69- 'tokens' => AccessTokens::class,
70- 'session' => Session::class,
71- 'jwt' => JWT::class,
72- ];
68+ public array $authenticators = [
69+ 'tokens' => AccessTokens::class,
70+ 'session' => Session::class,
71+ 'jwt' => JWT::class,
72+ ];
7373 ```
7474
7575 If you want to use JWT Authenticator in Authentication Chain, add `jwt`:
7676 ```php
77- public array $authenticationChain = [
78- 'session',
79- 'tokens',
80- 'jwt'
81- ];
77+ public array $authenticationChain = [
78+ 'session',
79+ 'tokens',
80+ 'jwt'
81+ ];
8282 ```
8383
8484## Configuration
@@ -95,9 +95,9 @@ Set the default payload items to the property `$defaultClaims`.
9595
9696E.g.:
9797```php
98- public array $defaultClaims = [
99- 'iss' => 'https://codeigniter.com/',
100- ];
98+ public array $defaultClaims = [
99+ 'iss' => 'https://codeigniter.com/',
100+ ];
101101```
102102
103103The default claims will be included in all tokens issued by Shield.
0 commit comments