This docs seems to be outdated. The code above seems to have moved to AuthServericeProvider and there is already the original code that returns the URL in the email. That can be modified to get the desired URL.