Token Store using file

// Example of typescript with FileTokenStore
import * as wppconnect from '@wppconnect-team/wppconnect';

const myTokenStore = new wppconnect.tokenStore.FileTokenStore({
// decodeFunction: JSON.parse,
// encodeFunction: JSON.stringify,
// encoding: 'utf8',
// fileExtension: '.my.ext',
// path: './a_custom_path',
});

wppconnect.create({
session: 'mySession',
tokenStore: myTokenStore,
});

wppconnect.create({
session: 'otherSession',
tokenStore: myTokenStore,
});

Implements

Constructors

Methods