cakephp / authentication

Authentication plugin for CakePHP. Can also be used in PSR7 based applications.
MIT License
116 stars 100 forks source link

Add convenience method to get the identifier. #670

Closed ADmad closed 1 month ago

ADmad commented 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().