$kirby->csrf()
Checks/returns a CSRF token
$kirby->csrf(string|null $check = null): string|bool
Parameters
Name | Type | Default | Description |
---|---|---|---|
$check | string ornull |
null
|
Pass a token here to compare it to the one in the session |
Return types
string
orbool
Either the token or a boolean check result