From e42257c689a3936b684e87e0453b5f7866788a2c Mon Sep 17 00:00:00 2001 From: Yash Khare Date: Tue, 29 Oct 2024 20:54:33 +0530 Subject: [PATCH] feat: platform flag (#82) * feat: Platform VSCODE flag Signed-off-by: Yash Khare * remove extra imports Signed-off-by: Yash Khare * chore: update body for github login Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in> * chore: update body for github login Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in> --------- Signed-off-by: Yash Khare Signed-off-by: shivamsouravjha <2019145@iiitdmj.ac.in> Co-authored-by: shivamsouravjha <2019145@iiitdmj.ac.in> --- src/SignIn.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SignIn.ts b/src/SignIn.ts index bd301b1..37a6aaf 100644 --- a/src/SignIn.ts +++ b/src/SignIn.ts @@ -311,6 +311,7 @@ function extractID(output: any) { interface AuthReq { GitHubToken: string; InstallationID: string; + Platform: string; } interface AuthResp { @@ -328,6 +329,7 @@ export async function validateFirst(token: string, serverURL: string): Promise<{ // extract string from promise const requestBody: AuthReq = { GitHubToken: token, + Platform: "vscode", InstallationID: installationID, }; console.log("Request Body:", requestBody);