Does anyone have an example or recommendation for ...
# prisma-whats-new
r
Does anyone have an example or recommendation for how to manage email verification with GraphCool? I've got the email-password template running, I'm imagining the
signupUser
resolver could do what it does, but have
verified: false
in the
User
entry.
authenticateUser
could check for
verified: true
and there could be a new
verifyUser
resolver. A subscription could watch unverified users getting created and send an e-mail with a generated token which is then verified by
verifyUser
. That's my idea but I'm wondering if anyone can make any other recommendations or offer some working examples. Cheers!
👍🏻 1
r
not what you're asking, but for my latest project i decided to just use google auth and skip having to manually deal with this aspect - something to consider, and it's been a lot easier
r
I bet, thanks for the suggestion. I plan to add Google Auth, but I do also want email/password