How to get email confirmationToken in REST local Register

I found a solution, the lifecycle to call is not afterCreate but afterUpdate