When using the btoa
method to hash usernames and passwords, everything seems to be working fine. However, I am encountering this error in my TypeScript errors within WebStorm. How can I resolve this issue?
JavaScript code
let base64hash = btoa(user.username+ ':' + user.key);
tsconfig.json
/* tsconfig.json */
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es2016"
]
}
}