How to create an application that once registered, every time you open it, the registrant’s name is immediately listed in the application and is automatically logged in, and you cannot log in with another account.
Use TinyDB to store name, account, and session state.
Also search some tutorials in our community or YouTube
Hi,
There is no absolute way to prevent a user from registering multiple times.
The only reliable method to ensure a truly unique account is to rely on official and hard-to-replicate data, such as an identity document or a payment card.
- If we authenticate via email, the user can simply create a new one.
- If we authenticate via phone number, the user can obtain a new number.
- If we authenticate via device ID, the user can change or reset their device.