We continue on with the lesson sending confirmation emails to this where we verify the tokens in the confirmation emails.
We first create a mutation in our apollo server which takes the token and then verifies it using jwt.verify function and returns a boolean.
Next step we use the nuxt app to get the token from the url and then pass it to our graphql api. If the token is valid we show a message - you have verified your email address.
That is it. Stay tuned for more. Please give it thumbs and subscribe
Become a patron - / doingiteasychannel
Follow me on Twitter / uthpala_419
#Nuxt #ApolloServer