Dynamic endpoint in getAuthenticatedURL

getAuthenticatedURL is using Default US endpoint - changed to self::$endpoint