The What and Why: Robin Keys
The idea of Robin Keys is to provide flexibility and make for a better developer experience while naming fields for your User model.
keysobject consists of the three unique fields we currently have for each user —
userName. The values of those fields should be strings you would rather refer to them as.
Here's an example:
This way, you can refer to a user’s user token as
user_token, profile image as
profile_image, and username as
Interesting, right? You’re welcome!
Last modified 6mo ago