From 3dde6ac73caefc97c7b5ce59c099265ef7d431b8 Mon Sep 17 00:00:00 2001 From: spencerwooo Date: Fri, 31 Dec 2021 13:19:38 +0800 Subject: [PATCH] store tokens in memory directly --- utils/odAuthTokenStore.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/utils/odAuthTokenStore.ts b/utils/odAuthTokenStore.ts index cbfade4..3e626b3 100644 --- a/utils/odAuthTokenStore.ts +++ b/utils/odAuthTokenStore.ts @@ -3,15 +3,16 @@ 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`) -const kv = new Keyv({ - store: new KeyvFile({ - filename: `${os.tmpdir()}/od-auth-token.json`, - }), -}) +// const kv = new Keyv({ +// store: new KeyvFile({ +// filename: `${os.tmpdir()}/od-auth-token.json`, +// }), +// }) +const kv = new Keyv({}) export async function storeOdAuthTokens({ accessToken,