I can confirm that works, including in the file I was having problems with.
My statement that “this.currentUser” didn’t exist within the connector was wrong.
Looking again, I see where I went wrong: I was using Chrome’s debugger to see which properties/methods existed on the “this” object, but I didn’t realise it only shows some of them at the top level, with others nested inside the _proto_ level. I’m still very much a javascript newbie and still getting surprised by differences vs my bread & butter C++.
Many thanks for your help!