mirror of
https://github.com/lanqian528/chat2api.git
synced 2026-06-13 21:02:46 +08:00
v1.6.2-beta3 fix bugs
This commit is contained in:
parent
36d7567ec9
commit
b2efbf49ae
@ -28,8 +28,8 @@ if enable_gateway:
|
||||
|
||||
@app.post("/auth/refresh")
|
||||
async def refresh(request: Request):
|
||||
res = await request.json()
|
||||
refresh_token = res.get("refresh_token", "")
|
||||
form_data = await request.form()
|
||||
refresh_token = form_data.get("refresh_token", "")
|
||||
data = {
|
||||
"client_id": "pdlLIX2Y72MIl2rhLhTE9VV9bN905kBh",
|
||||
"grant_type": "refresh_token",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user