Getting the client's IP address inside custom database login

Hey @andreaskoepke!

I’m not experienced in Node.js and have no idea whether it’s possible to do that with it but as you said you can obtain user IP address with Rules.

Important thing to remember is that Rules are triggered at successful login

To obtain the IP address:

  • You need to access context object and its property request and then the ip property.

I’ll try to find out internally whether it’s doable any other way!