I was given the following challenge: "I want you to develop a mobile application based on react native. It's an authentication app. Which means I want to open a website and try to login and when I do. I will receive a push notification on the device when I open it I will get a code to enter on the website when I do I should be logged in".
I didn't start with the code yet, I'm trying to figure out how the process will be done. I was thinking of implementing a TOTP algorithm using Node.JS, but then I got stuck on how the app will know that we logged in on a website and send a push notification.