Native API access to login activity?

I’m not sure if this is possible in a purely native implementation, let alone with Ionic…

Is it possible to have an app that monitors login attempts in real time? As opposed to say accessing logs later… if that is even possible? Are apps sandboxed away from login system functionality?

I don’t know where to check permissions for how much access an app can have.