You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**TokensValidation::checkAuthToken()** checks the authentication token in the cookie and returns the result. If the validation is successful, a new token is generated and replaced in the cookie.
92
92
93
-
##### check the token without regenerate a new one:
93
+
##### check the token without regenerating a new one:
In Laravel project you can generate class to override the default classes of TokensValidation
519
+
(ConfirmationUrlBuilder, AuthTokenCookiesHandler...) by running the following command:
520
+
521
+
```bash
522
+
php artisan tokensvalidation:handler
523
+
```
524
+
525
+
after that, choose what class you want to generate and follow the instruction shown in the console.
518
526
519
527
### Errors identification
520
528
521
-
To identify and troubleshoot errors that may occur, you can utilize the **$result->getCause()** function, which returns a reference code to indicate the specific cause of the error. Several possible error codes may be returned by this function.
529
+
To identify and troubleshoot errors that may occur, you can utilize the **$result->getCause()** function,
530
+
which returns a reference code to indicate the specific cause of the error.
531
+
This function may return several possible error codes.
0 commit comments