We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d848c9b commit 088a81cCopy full SHA for 088a81c
1 file changed
packages/opencode/src/cli/cmd/auth.ts
@@ -268,18 +268,17 @@ export const AuthLoginCommand = cmd({
268
const proc = Process.spawn(wellknown.auth.command, {
269
stdout: "pipe",
270
})
271
- const exit = await proc.exited
272
- if (exit !== 0) {
+ if (!proc.stdout) {
273
prompts.log.error("Failed")
274
prompts.outro("Done")
275
return
276
}
277
- if (!proc.stdout) {
+ const [exit, token] = await Promise.all([proc.exited, text(proc.stdout)])
+ if (exit !== 0) {
278
279
280
281
282
- const token = await text(proc.stdout)
283
await Auth.set(args.url, {
284
type: "wellknown",
285
key: wellknown.auth.env,
0 commit comments