# How to log information in adminAuth's verify function

**URL:** <https://discourse.nodered.org/t/how-to-log-information-in-adminauths-verify-function/61238>\
**Category:** General\
**Tags:** security\
**Created:** [13 April 2022 12:47 UTC](https://discourse.nodered.org/t/how-to-log-information-in-adminauths-verify-function/61238 "2022-04-13T12:47:47Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![trf](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@trf](https://discourse.nodered.org/u/trf)\
**Post date:** [14 April 2022 06:57 UTC](https://discourse.nodered.org/t/how-to-log-information-in-adminauths-verify-function/61238/10 "2022-04-14T06:57:40Z")

</div>

Thank you all for the help, after understanding that the logging was correct and should be showing I realised the verify function wasnt being called, which was because I had it as a property of adminAuth.strategy (which I had seen a few time for example in [this question](https://discourse.nodered.org/t/help-with-adminauth-config-for-openid-based-authentication/6058/7)) instead of a property of adminAuth.strategy.options. After moving it to the correct place the function is called and the profile object logged.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-log-information-in-adminauths-verify-function/61238)._
