撸了一个手动管理access_token, refresh_token的小项目

初衷是我在docker中运行了这个项目https://github.com/aurorax-neo/free-gpt3.5-2api,但是调用接口的时候,我想自定义 Authorization 去请求接口,顺便管理access_token。

实现的功能:
增删改access_token,
增删改refresh_token,支持手动通过refresh_token去更新access_token
定时更新(7 天,未验证定时任务是否生效 :sweat_smile:)根据refresh_token去更新access_token,

希望大佬们可以去优化完善它 :grinning:

代码下载:

chat2api-token-open.zip (11.8 KB)

2 个赞

太强了!

收藏

能动手整出来 就很优秀

代码几乎都是gpt写的,我只是做了整合和一些小改动 :star_struck: