The syntax you are using is not creating an anonym...
# getting-started
d
The syntax you are using is not creating an anonymous object, for that you need
object : AuthStateListener
.