Volst / graphql-authentication

🔑 Makes it easy to do boring authentication stuff with GraphQL (login, password reset, ...)
https://graphql-authentication-demo.now.sh/
ISC License
234 stars 15 forks source link

How is confirmEmail called? #49

Closed haysclark closed 5 years ago

haysclark commented 5 years ago

I have setup graphql-authentication with my project, and emails are being generated; however, I do not follow how the link is supposed to call the confirmEmail resolver? Here is an example link generated by my project.

http://localhost:8080/confirm-email/t2120019@nwytg.net/a3b95149-1f33-458e-8539-bde33adc8028

Am I supposed to make a route in the client that will trigger a mutation? Or is this supposed to call some server-side only route? Any help would be greatly appreciated.

haysclark commented 5 years ago

Solved.

It looks like the confirmEmail method is safe to put in the client as the GraphQL endpoint contains the logic.