Skip to content

Commit a348b20

Browse files
committed
Fix setup requiring token with mTLS
1 parent 4c7076f commit a348b20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/remote.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import * as path from "path"
99
import prettyBytes from "pretty-bytes"
1010
import * as semver from "semver"
1111
import * as vscode from "vscode"
12-
import { makeCoderSdk, startWorkspaceIfStoppedOrFailed, waitForBuild } from "./api"
12+
import { makeCoderSdk, needToken, startWorkspaceIfStoppedOrFailed, waitForBuild } from "./api"
1313
import { extractAgents } from "./api-helper"
1414
import * as cli from "./cliManager"
1515
import { Commands } from "./commands"
@@ -160,7 +160,7 @@ export class Remote {
160160
const { url: baseUrlRaw, token } = await this.storage.readCliConfig(parts.label)
161161

162162
// It could be that the cli config was deleted. If so, ask for the url.
163-
if (!baseUrlRaw || !token) {
163+
if (!baseUrlRaw || (!token && needToken())) {
164164
const result = await this.vscodeProposed.window.showInformationMessage(
165165
"You are not logged in...",
166166
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy