Handling First-Time User Registration and OTP-Based Login Across Devices in Bubble.io

i am making an app in bubble.io where i am facing a problem like when the first time the user is coming in the app if it is not in the database i can get all his information and create a new entry in the database and once the user is registered next time he opens the app i do not want to go through him in the onboarding section but there is another scenario what if the user cahnged his device or delete the app next time he came into the app i need to take his email and send him an otp how can i covered all these scenario