Okay, I’ve figured out that I’m missing the anonymous user declaration from here: https://www.mongodb.com/docs/realm/sdk/java/users/authenticate-users/#std-label-java-authenticate

But when I put that code above my current code, my next error is the line user.getMongoClient(“mongodb-atlas”): Cannot resolve method “getMongoClient” in ‘AtomicReference’.

Again I’m just literally following the tutorial, I’m not adding any extra code or editing it in any way. Why doesn’t it work?