Closed ADmad closed 1 month ago
If you just need that id/identifier then using this new method would be more convenient than doing $this->Authentication->getIdentityData('id') (which can throw an exception) or doing $this->Authentication->getIdentity()?->getIdentifier().
$this->Authentication->getIdentityData('id')
$this->Authentication->getIdentity()?->getIdentifier()
If you just need that id/identifier then using this new method would be more convenient than doing
$this->Authentication->getIdentityData('id')
(which can throw an exception) or doing$this->Authentication->getIdentity()?->getIdentifier()
.