Skip to content

Commit 29f586d

Browse files
committed
Added login logout p2p call (#254)
1 parent 206ccc1 commit 29f586d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

extensions/vscode/src/commands.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ const commandsMap: (
870870
await extensionContext.secrets.delete("pearai-token");
871871
await extensionContext.secrets.delete("pearai-refresh");
872872
core.invoke("llm/setPearAICredentials", { accessToken: undefined, refreshToken: undefined });
873+
vscode.commands.executeCommand("pearai-roo-cline.pearaiLogout")
873874
vscode.window.showInformationMessage("PearAI: Successfully logged out!");
874875
},
875876
"pearai.updateUserAuth": async (data: {

extensions/vscode/src/extension/VsCodeExtension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ export class VsCodeExtension {
155155
refreshToken: queryParams.get("refreshToken"),
156156
};
157157
vscode.commands.executeCommand("pearai.updateUserAuth", data);
158+
vscode.commands.executeCommand("pearai-roo-cline.pearaiLogin", data)
158159
}
159160
}
160161
},

0 commit comments

Comments
 (0)