Auth error:TypeError: URL is not a constructor

Using search above I found this that it seems there is an error in the tut and the solution has been updated elsewhere

Please search before dumping a problem in the forum - its just good manners ?