-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请求支持 refresh_token to access_token #54
Comments
refresh token 的有效期为永久, 且每次用 refresh token 刷新 access token 时得到的 access token 有效期都为10天 |
大佬好像没ios设备。
能支持的话,再好不过了。这种方式就是很稳定,自己用脚本每周刷新一次,大半年没出过问题。现在用cookie刷新的方式好像有概率会掉登录。有时候报500错,看log
也是成功刷新,但其实是掉登录了,要重新登录抓cookie。
…On Wed, May 15, 2024 at 00:23 baby9 ***@***.***> wrote:
refresh token 的有效期为永久, 且每次用 refresh token 刷新 access token 时得到的 access
token 有效期都为10天
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADLUBEQON55FL5OWPJ7LH3ZCI3BBAVCNFSM6AAAAABHWP5VF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJQGY2DGNZTG4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
这个client_id是固定的嘛 |
是固定的,zhile接口目前也可以,没有任何限制 |
可以看下我的代码,跑了很久了 |
PUID是7天有效期,和10天的公约数只有1了 |
我魔改的gochatgptapi 是7天一刷。可行么? |
一天一刷也没啥问题,懒得改了,而且支持多账号呀,cookies.json里设置多个账户名和refresh_token就好了 |
通过refresh_token 生成 access_token
通过官网获取 https://auth0.openai.com/oauth/token 以下是python实现
调用 zhele 的免费api接口获取
The text was updated successfully, but these errors were encountered: