post obfuscated as application/json

This commit is contained in:
spencerwooo
2021-12-31 15:55:38 +08:00
parent 72153cc852
commit 71ba7ff67c
3 changed files with 16 additions and 8 deletions
+2 -3
View File
@@ -1,9 +1,9 @@
// This should be only used on the server side, where the tokens are stored with KV store using
// a file system based storage. The tokens are stored in the file system as JSON at /tmp path.
// import os from 'os'
import os from 'os'
import Keyv from 'keyv'
// import { KeyvFile } from 'keyv-file'
import { KeyvFile } from 'keyv-file'
// console.log(`${os.tmpdir()}/od-auth-token.json`)
@@ -12,7 +12,6 @@ export default class TokenStore {
constructor() {
this.kv = new Keyv()
// this.kv = new Keyv({
// store: new KeyvFile({
// filename: `${os.tmpdir()}/od-auth-token.json`,