Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

- 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.

...

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

- Sample

Code Block
languagetypescript
import { CavrnusSpatialConnector } from "../services/csc";

async function connectGuest()
{
    const csc = new CavrnusSpatialConnector();
	try
	{
		await csc.authenticateAsGuest("cav.dev.cavrn.us", "guest-screenname");
	}
	catch (err)
	{
		throw err;
	}
}