File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44export async function CopilotAuthPlugin ( { client } ) {
55 const CLIENT_ID = "Iv1.b507a08c87ecfe98" ;
66 const HEADERS = {
7- "User-Agent" : "GitHubCopilotChat/0.32.4 " ,
8- "Editor-Version" : "vscode/1.105.1 " ,
9- "Editor-Plugin-Version" : "copilot-chat/0.32.4 " ,
7+ "User-Agent" : "GitHubCopilotChat/0.35.0 " ,
8+ "Editor-Version" : "vscode/1.107.0 " ,
9+ "Editor-Plugin-Version" : "copilot-chat/0.35.0 " ,
1010 "Copilot-Integration-Id" : "vscode-chat" ,
1111 } ;
1212 const RESPONSES_API_ALTERNATE_INPUT_TYPES = [
@@ -102,7 +102,7 @@ export async function CopilotAuthPlugin({ client }) {
102102 type : "oauth" ,
103103 refresh : info . refresh ,
104104 access : tokenData . token ,
105- expires : tokenData . expires_at * 1000 ,
105+ expires : tokenData . expires_at * 1000 - 5 * 60 * 1000 ,
106106 ...( info . enterpriseUrl && {
107107 enterpriseUrl : info . enterpriseUrl ,
108108 } ) ,
You can’t perform that action at this time.
0 commit comments