Skip to content

Commit 8a30a5d

Browse files
committed
Use more token instead of key
1 parent 548f541 commit 8a30a5d

11 files changed

+13
-13
lines changed

src/commands/ci/fetch-default-org-slug.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function getDefaultOrgSlug(): Promise<CResult<string>> {
4040
return {
4141
ok: false,
4242
message: 'Failed to establish identity',
43-
data: `No organization associated with the API token. Unable to continue.`,
43+
data: `No organization associated with the Socket API token. Unable to continue.`,
4444
}
4545
}
4646

src/commands/config/cmd-config-get.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('socket config get', async () => {
166166
// Migrate this away...?
167167
cmdit(
168168
['config', 'get', 'apiToken', '--config', '{"apiToken":null}'],
169-
'should backwards compat support api key as well env var',
169+
'should back compat support for API token as well env var',
170170
async cmd => {
171171
const { stderr, stdout } = await invokeNpm(binCliPath, cmd, {
172172
SOCKET_SECURITY_API_KEY: 'abc',

src/commands/login/attempt-login.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function attemptLogin(
2929
apiProxy ??= getConfigValueOrUndef('apiProxy') ?? undefined
3030
const apiTokenInput = await password({
3131
message: `Enter your ${terminalLink(
32-
'Socket.dev API key',
32+
'Socket.dev API token',
3333
'https://docs.socket.dev/docs/api-keys',
3434
)} (leave blank for a public key)`,
3535
})
@@ -63,7 +63,7 @@ export async function attemptLogin(
6363
const { organizations } = orgsCResult.data
6464
const orgSlugs = Object.values(organizations).map(obj => obj.slug)
6565

66-
logger.success(`API key verified: ${orgSlugs}`)
66+
logger.success(`API token verified: ${orgSlugs}`)
6767

6868
const enforcedChoices: OrgChoices = Object.values(organizations)
6969
.filter(org => org?.plan === 'enterprise')

src/commands/login/cmd-login.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const config: CliCommandConfig = {
3434
API Token Requirements
3535
- Quota: 1 unit
3636
37-
Logs into the Socket API by prompting for an API key
37+
Logs into the Socket API by prompting for an API token
3838
3939
Options
4040
${getFlagListOutput(config.flags)}

src/commands/login/cmd-login.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('socket login', async () => {
2222
API Token Requirements
2323
- Quota: 1 unit
2424
25-
Logs into the Socket API by prompting for an API key
25+
Logs into the Socket API by prompting for an API token
2626
2727
Options
2828
--apiBaseUrl API server to connect to for login

src/commands/organization/cmd-organization-list.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const { DRY_RUN_BAILING_NOW } = constants
1515

1616
const config: CliCommandConfig = {
1717
commandName: 'list',
18-
description: 'List organizations associated with the API key used',
18+
description: 'List organizations associated with the Socket API token',
1919
hidden: false,
2020
flags: {
2121
...commonFlags,

src/commands/organization/cmd-organization-list.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('socket organization list', async () => {
1616
const { code, stderr, stdout } = await invokeNpm(binCliPath, cmd)
1717
expect(stdout).toMatchInlineSnapshot(
1818
`
19-
"List organizations associated with the API key used
19+
"List organizations associated with the Socket API token
2020
2121
Usage
2222
$ socket organization list [options]

src/commands/organization/cmd-organization-quota.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const { DRY_RUN_BAILING_NOW } = constants
1515

1616
const config: CliCommandConfig = {
1717
commandName: 'quota',
18-
description: 'List organizations associated with the API key used',
18+
description: 'List organizations associated with the Socket API token',
1919
hidden: true,
2020
flags: {
2121
...commonFlags,

src/commands/organization/cmd-organization-quota.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('socket organization quota', async () => {
1616
const { code, stderr, stdout } = await invokeNpm(binCliPath, cmd)
1717
expect(stdout).toMatchInlineSnapshot(
1818
`
19-
"List organizations associated with the API key used
19+
"List organizations associated with the Socket API token
2020
2121
Usage
2222
$ socket organization quota [options]

src/commands/organization/cmd-organization.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('socket organization', async () => {
2323
2424
Commands
2525
dependencies Search for any dependency that is being used in your organization
26-
list List organizations associated with the API key used
26+
list List organizations associated with the Socket API token
2727
policy Organization policy details
2828
2929
Options

0 commit comments

Comments
 (0)