authenticateWithPassword (Javascript)
- Declaration
public async authenticateWithPassword(apiEndpoint: string, email: string, password: string): Promise<void>
- Description
Gets user credentials, allowing you to join valid spaces and make other requests.
- Sample
import { CavrnusSpatialConnector } from "../services/csc";
async function connectGuest()
{
const csc = new CavrnusSpatialConnector();
try
{
await csc.authenticateWithPassword("cav.dev.cavrn.us", "email@email.com", "password");
}
catch (err)
{
throw err;
}
}
Â