Question about Notification Push

I know this question is not about Ionic but if anyone could help me. I have a REST conected with my app, builded with node.js, express and mongo. To notify and connect my REST with Firebase, I’m using this plugin( My problem is that to send a notification, the device token must be registered manually.


Is there anyway to do it from REST when User logins automaticall? I’m missing something?