Browse Source

[PM-1267] Updated cli receive command to use api.bitwarden.com as api url (#5239)

pull/5304/head
aj-rosado 3 years ago committed by GitHub
parent
commit
def3b1436d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/cli/src/tools/send/commands/receive.command.ts

2
apps/cli/src/tools/send/commands/receive.command.ts

@ -111,7 +111,7 @@ export class SendReceiveCommand extends DownloadCommand { @@ -111,7 +111,7 @@ export class SendReceiveCommand extends DownloadCommand {
private getApiUrl(url: URL) {
const urls = this.environmentService.getUrls();
if (url.origin === "https://send.bitwarden.com") {
return "https://vault.bitwarden.com/api";
return "https://api.bitwarden.com";
} else if (url.origin === urls.api) {
return url.origin;
} else if (this.platformUtilsService.isDev() && url.origin === urls.webVault) {

Loading…
Cancel
Save