We are developing an app using Flutter + Firebase Authentication, We are using phone authentication of Firebase Auth. We want to bind a user with a device (Phone), as phone number are portable.
Ex:
User (U1) has mobile (M) and signup using phone Auth (User id will be created after OTP verification)
Let's say after some that mobile (M) is transferred to another User, and he does singin in our app, he will get User (U1) details.
We are thinking to put some association of the user with a device (device identifier), so that for any user if deviceId gets changes, we can throw some challenges to the user (Like question / or his KYC detail). This will prevent account takeover.
So far we haven't found anything related to user and device association during sign-in/up using Firebase Authentication. Can someone help?
in short, Can we store some extra information during user sign-in/up using firebase?