How to automatically log the user in after email verification

https://forum.strapi.io/t/strapi-email-confirmation-validation-api-endpoint/2261/13

code example. with that you will get the user info and the JWT as an answer from confirmation api request.