Credentials.anonymous constructor

Credentials.anonymous({
  1. bool reuseCredentials = true,
})

Returns a Credentials object that can be used to authenticate an anonymous user. Setting reuseCredentials to false will create a new anonymous user, upon App.logIn. Anonymous Authentication Docs

Implementation

Credentials.anonymous({bool reuseCredentials = true}) : _handle = realmCore.createAppCredentialsAnonymous(reuseCredentials);