authenticateAsGuest (Javascript)
- 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";
async function connectGuest()
{
const csc = new CavrnusSpatialConnector();
try
{
await csc.authenticateAsGuest("cav.dev.cavrn.us", "guest-screenname");
}
catch (err)
{
throw err;
}
}
Looking for labels? They can now be found in the details panel on the floating action bar.
Related content
AuthenticateAsGuest
AuthenticateAsGuest
More like this
AuthenticateAsGuest (.NET)
AuthenticateAsGuest (.NET)
More like this
authenticateWithPassword (Javascript)
authenticateWithPassword (Javascript)
More like this
AuthenticateAsGuest (Unreal Engine)
AuthenticateAsGuest (Unreal Engine)
More like this
AuthenticateWithPassword (Unity)
AuthenticateWithPassword (Unity)
More like this
exitSpace (Javascript)
exitSpace (Javascript)
More like this