Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

- Declaration

public async authenticateAsGuest(apiEndpoint: string, screenName: string): Promise<void>

- Description

Creates a guest user account with a given screen name and joins as that user.

This is a good way of immediately getting your customers into a space without requiring any inputs from them.

Keep in mind that Guest accounts have limited permissions, which can be customized in the Management Console.

- Sample

import { CavrnusSpatialConnector } from "../services/csc";

const csc = new CavrnusSpatialConnector();

async function connectGuest()
{
	try
	{
		await state.csc!.authenticateAsGuest("cav.dev.cavrn.us", "guest-screenname");
	}
	catch (err)
	{
		throw err;
	}
}
  • No labels