$token->toString()
Returns the token as a string in the format <expiry>.<id> or <expiry>.<id>.<key>
$token->toString(bool $key = true): string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $key | bool |
true
|
Whether to include the secret key (if there is one) |
Return type
string