Post Form Token

For versions before 2021, i can use as “authorization” token for custom files with own html forms.
According to documentation this should still work. But it isn’t. The CurrentPage() has no Token Attribute.
Does somebody has any idea?
Thanks in advance.

For v2021, you should use this code:

<?php if (Config("CHECK_TOKEN")) { ?>
<input type="hidden" name="<?= $TokenNameKey ?>" value="<?= $TokenName ?>"><!-- CSRF token name -->
<input type="hidden" name="<?= $TokenValueKey ?>" value="<?= $TokenValue ?>"><!-- CSRF token value -->
<?php } ?>

Perfect. It works.
Thank you!