Generate QR-code from unique user id

For our project we want to create a personalized QR-code for every user that signs in on our App. The QR-code has to be strictly personal and every QR code has to be unique, so it has to contain the Unique user id and name of the user.

We are using the firebase authentication system and the firebase realtime database.

What do you guys think is the best way to get the unique user ID and the Name of the user from firebase and let the system automatically generate a QR-code from this data?

Is it a userID you generate or one that you get from user ?


How robust do you want it to be ? Do you need to avoid someone forgeing a false "authenticated" user ID ?

Generate QR-code from unique user id
 
 
Q