Login & Authentication SDK
Learn how to check for and login to VIVERSE services to access user information including their preferred avatars
Authentication & Authorization
Step 1: Initialize the Client
// Initialize a new client
globalThis.viverseClient = new globalThis.viverse.client({
clientId: '{yourAppID}',
domain: 'account.htcvive.com', // HTC Account domain
cookieDomain: '{yourCookieDomain}', // Optional
});Step 2: Check for Existing Authentication
Step 3: Trigger Login via VIVERSE Worlds
API Reference
new viverse.client(options)
new viverse.client(options)Parameter
Type
Description
Required
checkAuth()
checkAuth()Property
Type
Description
loginWithWorlds(options)
loginWithWorlds(options)Parameter
Type
Description
Required
Last updated
Was this helpful?