public static check ( mixed $key, array $options = [] ) : boolean | ||
$key | mixed | Either the actual key as a string, or a `Request` object containing the key. |
$options | array | The options to use when matching the key to the token: - `'sessionKey'` _string_: The key used when reading the token from the session. |
Результат | boolean | Returns `true` if the hash key is a cryptographic match to the stored session token. Returns `false` on failure, which indicates a forged request attempt. |