Which user id to pass
Your own id for the signed-in user: always the same for that person, never shared, and not an email address.
The user id tells us which of your users is in front of the wall. It comes back to your server with every reward, so your server knows whose balance to change. We do not need to know who the person is. We need to recognise them again.
A good id
- Stays the same for as long as the user's account exists.
- Belongs to one user only.
- Comes from your own system: an account number or an internal id.
- Uses letters, digits and the characters
_ . - @ :and has up to 128 characters.
What to avoid
- Email addresses, names and phone numbers. They identify a person, and there is no reason to share them.
- Ids that change, such as a session or a device id. Every new id is a new user to us: their history starts again, and rewards arrive for an id your server may no longer know.
- One id for everyone, such as "guest". Rewards could not be told apart, and a survey one person took would be gone for all the others.
Users who are not signed in
Show the wall to signed-in users only. A reward needs an account to land in.