mirror of
https://gitee.com/wanwujie/sub2api
synced 2026-04-16 04:44:45 +08:00
feat(sync): full code sync from release
This commit is contained in:
@@ -5,6 +5,7 @@ import { adminAPI } from '@/api/admin'
|
||||
export interface OpenAITokenInfo {
|
||||
access_token?: string
|
||||
refresh_token?: string
|
||||
client_id?: string
|
||||
id_token?: string
|
||||
token_type?: string
|
||||
expires_in?: number
|
||||
@@ -192,6 +193,10 @@ export function useOpenAIOAuth(options?: UseOpenAIOAuthOptions) {
|
||||
scope: tokenInfo.scope
|
||||
}
|
||||
|
||||
if (tokenInfo.client_id) {
|
||||
creds.client_id = tokenInfo.client_id
|
||||
}
|
||||
|
||||
// Include OpenAI specific IDs (required for forwarding)
|
||||
if (tokenInfo.chatgpt_account_id) {
|
||||
creds.chatgpt_account_id = tokenInfo.chatgpt_account_id
|
||||
|
||||
Reference in New Issue
Block a user