Hello
I’m trying to integrate Box into my app for file storage. I think I want JWT Auth as the app will only ever store files in its own Box account. I’m getting a typescript error: Type '{ clientId: string; clientSecret: string; jwtKeyId: string; privateKey: string; privateKeyPassphrase: string; enterpriseId: string; }' is missing the following properties from type 'JwtConfig': tokenStorage, privateKeyDecryptor
with the following code:
const config = {
clientId: BOX_CLIENT_ID,
clientSecret: BOX_CLIENT_SECRET,
jwtKeyId: '8495cr9l',
privateKey: Buffer.from(BOX_PRIVATE_KEY_BASE64, 'base64').toString('ascii'),
privateKeyPassphrase: BOX_PASSPHRASE,
enterpriseId: BOX_ENTERPRISE_ID,
}
const jwtAuth = new BoxJwtAuth({config})