Having Big integer literals issues with typescript in authopts

Hi there, I am building a project using vite, typescript, react, and composedb . when i try to call this session “session = await DIDSession.authorize(authMethod, {client.resources })” it gives me an error of Argument of type ‘{ client: ComposeClient; “”: any; }’ is not assignable to parameter of type ‘AuthOpts’.
Object literal may only specify known properties, and ‘client’ does not exist in type ‘AuthOpts’.ts(2345)
‘,’ expected.ts(1005)

When I try to call it this way, “session = await DIDSession.authorize(authMethod, { resources: client.resources })” gives me an error of
Big integer literals are not available in the configured target environment (“chrome87”, “edge88”, “es2019”, “firefox78”, “safari13.1”)

node_modules/bigint-mod-arith/dist/esm/index.browser.js:232:17: and Vite Error, /node_modules/.vite/deps/@composedb_client.js?v=53fdb2ec optimized info should be defined . Here is the whole function snippet that I am trying to load 

const LoadSession = async (authMethod?: AuthMethod): Promise => {
const sessionStr = localStorage.getItem(‘didsession’)
let session

if (sessionStr) {
session = await DIDSession.fromSession(sessionStr)
}

if (authMethod && (!session || (session.hasSession && session.isExpired))) {

session = await DIDSession.authorize(authMethod, { resources: client.resources })
client.setDID(session.did)
localStorage.setItem('didsession', session.serialize())

}

return session;
}

Hi, Ceramic and other projects in the stack require at least ES2020 support in the target environment, please make sure your project is setup accordingly.

I am using ES2020 but is till get the same error

tsconfig.json {
“compilerOptions”: {
“target”: “ES2020”,
“useDefineForClassFields”: true,
“lib”: [“DOM”, “DOM.Iterable”, “ESNext”],
“allowJs”: false,
“skipLibCheck”: true,
“esModuleInterop”: false,
“allowSyntheticDefaultImports”: true,
“strict”: true,
“forceConsistentCasingInFileNames”: true,
“module”: “ESNext”,
“moduleResolution”: “Node”,
“resolveJsonModule”: true,
“isolatedModules”: true,
“noEmit”: true,
“jsx”: “react-jsx”
},
“include”: [“src”],
“references”: [{ “path”: “./tsconfig.node.json” }]
}