awaitAuthentication (Javascript)
- Declaration
public awaitAuthentication(): Promise<CavrnusApiUser>
- Description
Returns an promise of type CavrnusApiUser when authentication is complete.
- Sample
import { CavrnusSpatialConnector } from "../services/csc";
function async awaitSpaceLoad()
{
const csc = new CavrnusSpatialConnector();
try
{
const spaceId = await csc.awaitAuthentication();
}
catch (err)
{
throw err;
}
}