Skip to content

Commit

Permalink
Merge pull request #125 from akamai/develop
Browse files Browse the repository at this point in the history
Minor changes for 'create-auth-token' command
  • Loading branch information
bmatthew authored Feb 15, 2023
2 parents 96eac72 + a0204dd commit 5e52987
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/edgeworkers/ew-cli-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { ewJsonOutput } from './client-manager';
import * as pkginfo from '../../package.json';
import { Command } from 'commander';
const program = new Command();
import isValidDomain from 'is-valid-domain';
const currentYear = new Date().getFullYear();
const copywrite = '\nCopyright (c) 2019-' + currentYear + ' Akamai Technologies, Inc. Licensed under Apache 2 license.\nYour use of Akamai\'s products and services is subject to the terms and provisions outlined in Akamai\'s legal policies.\nVisit http://github.com/akamai/cli-edgeworkers for detailed documentation';

Expand Down Expand Up @@ -489,11 +488,6 @@ program
options['format'] = options.format || configUtils.searchProperty(FORMAT);

try {
// deprecation msg for people using older CLI. This will be removed eventually.
if (!isValidDomain(hostName)) {
cliUtils.logAndExit(1, 'ERROR: Creating auth token with secret is deprecated with version CLI 1.1.0. Please use your host name to create an authentication token.');
}

await cliHandler.createAuthToken(hostName, options);
} catch (e) {
cliUtils.logAndExit(1, e);
Expand Down

0 comments on commit 5e52987

Please sign in to comment.