mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-22 15:51:18 -07:00
Cache oauth credentials (#927)
This commit is contained in:
committed by
GitHub
parent
759e87c623
commit
3da4b71ae1
@@ -80,6 +80,10 @@ export async function main() {
|
||||
}
|
||||
}
|
||||
|
||||
// When using Code Assist this triggers the Oauth login.
|
||||
// Do this now, before sandboxing, so web redirect works.
|
||||
await config.getGeminiClient().getChat();
|
||||
|
||||
// hop into sandbox if we are outside and sandboxing is enabled
|
||||
if (!process.env.SANDBOX) {
|
||||
const sandbox = sandbox_command(config.getSandbox());
|
||||
|
||||
Reference in New Issue
Block a user