Skip to content

Latest commit

 

History

History

memory

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Memory Adapter

The memory adapter stores accounts in a map that will be lost after runtime. Helpful for quick development scenarios. Not ideal in production though because VRChat accounts have a limit to the amount of active login session they can have.

Installation

import MemoryStorageAdapter from "@enterlink/vrchat/adapter/memory";

Note: the import will not function if tsconfig has module resolution on an unsupported version.

Usage

import MemoryStorageAdapter from "@enterlink/vrchat/adapter/memory";

const adapter = new MemoryStorageAdapter([
  {
    email: '[email protected]',
    password: 'some-secret-password',
    totpKey: 'totp-private-key'
  },
  {
    email: '[email protected]',
    password: 'some-secret-password',
    totpKey: 'totp-private-key'
  },
  {
    email: '[email protected]',
    password: 'some-secret-password',
    totpKey: 'totp-private-key'
  }
]);

It is highly recommended to use an adapter that will persist session states across restarts. VRChat has a limit to how many active sessions an account can have.