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.
import MemoryStorageAdapter from "@enterlink/vrchat/adapter/memory";
Note: the import will not function if tsconfig has module resolution on an unsupported version.
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.