private void Init(string authProvider, string accessToken)
    {
		enabled = true;

		if (string.IsNullOrEmpty(IDENTITY_POOL_ID))
		{
			throw new NotSupportedException ("Please setup your the identity pool id in SceneController");
		}

		//Create a Credentials provider that uses Cognito Identity
		credentials = new CognitoAWSCredentials(IDENTITY_POOL_ID, ENDPOINT);

		//If fbAccesToken is set, we can use Cognito's authenticated identities
		if (accessToken != null) {
			credentials.AddLogin(authProvider, accessToken);
		}

		syncManager = new CognitoSyncManager (credentials, new AmazonCognitoSyncConfig { RegionEndpoint = ENDPOINT });

        InitializeCharactersDataset();
    }
    private void Init(string authProvider, string accessToken)
    {
        if (string.IsNullOrEmpty(IDENTITY_POOL_ID))
		{
			throw new NotSupportedException ("Identity Pool ID is not set");
		}

        //Create a Credentials provider that uses Cognito Identity
        credentials = new CognitoAWSCredentials(IDENTITY_POOL_ID, ENDPOINT);

		myIdentity = credentials.GetIdentityId();

		credentials.IdentityChangedEvent += (object sender, Amazon.CognitoIdentity.CognitoAWSCredentials.IdentityChangedArgs e) => {
			Debug.Log("Identity Changed (old: '"+e.OldIdentityId+"', new: '"+e.NewIdentityId+"')");
			myIdentity = e.NewIdentityId;
		};

		//If fbAccesToken is set, we can use Cognito's authenticated identities
		if (accessToken != null) {
			credentials.AddLogin(authProvider, accessToken);
		}

		loggedIn = true;

		UpdateIdentity();

	}