mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
store tokens in memory directly
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user