Hey, so I am trying to implement an email verifica...
# orm-help
p
Hey, so I am trying to implement an email verification system. I’ve managed to send an email from my graphql-yoga node js server, now I need a link for the user to click on. I’d like the server to have a script that’s executed when the link is clicked. Can someone direct me in the right direction?
r
Why not just have confirm email mutation and call it via the frontend?
p
I thought about that, but the only way I can think of making that work is through DeepLinking, but ideally I’d like the user to be able to confirm the address from any device.
e
Does graphql-yoga let you create another endpoint? If yes, I think your link could be ike
<https://your.domain/verify-account/:code>
and have your script at that endpoint
r
Hey @Philipp Rajah Moura Srivastava 👋 If you need to create an endpoint, then GraphQL Yoga offers the express middleware and so you can execute that specific endpoint for the link.