Token::parse()
Parses a token string into a Token object
Token::parse(string $token, bool $key = true): Token
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $tokenrequired | string |
no default value | Session token |
| $key | bool |
true
|
Whether the token string includes the secret key |
Return type
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\InvalidArgumentException |