Skip to content
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.

优先使用保存的 refresh_token,其次才是配置的 refresh_token #186

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yuudi
Copy link

@yuudi yuudi commented Jun 23, 2021

由于 onedrive 的 refresh_token 有效期只有三个月,如果使用配置的 refresh_token,则三个月后会出现错误

所以,优先使用保存的 refresh_token,当保存的 refresh_token 不存在时才使用配置的 refresh_token

@spencerwooo spencerwooo added enhancement New feature or request todo Feature to be implemented labels Jun 24, 2021
@beetcb beetcb mentioned this pull request Jul 15, 2021
@People-11
Copy link

修改后,部署出现以下错误
Snipaste_2021-07-17_00-24-27

@yuudi
Copy link
Author

yuudi commented Jul 17, 2021

不好意思我没有用 wrangler 测试,我是直接用 webpack cli 打包后直接复制到 cloudflare worker 的

可能 wrangler 不太支持可选链和空值合并

PR 已经修改,改掉了这些新语法

@People-11
Copy link

不好意思我没有用 wrangler 测试,我是直接用 webpack cli 打包后直接复制到 cloudflare worker 的

可能 wrangler 不太支持可选链和空值合并

PR 已经修改,改掉了这些新语法

编译通过,谢谢您的支持

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request todo Feature to be implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants