interface FileTokenStoreOptions {
    decodeFunction: ((text: string) => any);
    encodeFunction: ((data: any) => string);
    encoding: BufferEncoding;
    fileExtension: string;
    path: string;
}

Properties

decodeFunction: ((text: string) => any)

Decode function to parse token file (Default JSON.parse) defaultFileTokenStoreOptions

JSON.parse

encodeFunction: ((data: any) => string)

Encode function to save tokens (Default JSON.stringify)

JSON.stringify

encoding: BufferEncoding

Encoding used to read and save files

'utf8'
fileExtension: string
'.data.json'
path: string

Folder path to store tokens

'./tokens'