Skip to main content
Version: 5.7.0

InitializeIdentity

Initializes the authentication service with an anonymous installation ID and most recently used profile ID. You will need to call this method before authenticating anonymously.

Note that calling this is the same as calling Initialize in the BrainCloudAuthentication service.

caution

InitializeIdentity must be called before you can authenticate a user anonymously.

Method Parameters

ParameterDescription
profileIdThe profile id of the user
anonymousIdThe anonymous id of the user

Usage

http://localhost:3000
_bc.InitializeIdentity("myProfileId", "myAnonymousId");