There\'s a hook function I have on my User model that generates an API key with the crypto module and hashes it, it\'s attached to the beforeCreate
User
beforeCreate