I’m looking into the new CLI module system, specifically https://github.com/graphcool/modules/tree/master/authentication/email-password, and had a couple questions:
- should code in modules be modified by the end user?
- In the email-password module, an
EmailUsertype is created, I’m assuming this is in lieu of a
Usertype? If so, what are the best practices for adding additional fields to that type (which of course relates to my first question)
The approach I’ve taken is to modify the email-password module to replace EmailUser with User, and moved the User type and associated permissions into the root types.graphql file. Not sure if that is the best way forward in terms of updating the email-password module in the future, but it sounds like there isn’t a connection after adding so figured that was a reasonable approach in terms of augmenting the base User type.