joselfonseca / lighthouse-graphql-passport-auth

Add GraphQL mutations to get tokens from passport for https://lighthouse-php.com/
https://lighthouse-php-auth.com/
MIT License
231 stars 55 forks source link

Extract token from verificationUrl in VerifyEmail #118

Closed wimski closed 4 years ago

wimski commented 4 years ago

In order to more easily extend the VerifyEmail notification, I've extracted the logic for generating the token to a separate method. This way you can replace the logic for generating the url or generating the token separately without touching the other.