Skip to content

Commit

Permalink
feat: add auth:accesstoken:store command (#165)
Browse files Browse the repository at this point in the history
* feat: add command auth:token:set

@W-8066452@

* chore: update command ref and topic map

* chore: unit tests and refactor from team guidance

* chore: update cmd ref and package.json

* chore: add tests

* chore: update command-snapshot

* chore: remove .codecov.yml

Authored via Leif

* chore: sync github PR slack notification (#152)

Authored via Leif

* feat: identify scratch orgs if hub is known during auth (#148)

* feat: identify scratch orgs if hub is known during auth

* chore: remove codecov

* chore: clean up github folder

* refactor: don't use prod-like loginUrl to exit

* chore: prune unnecessary ts-comment

* test: temporarily remove scratch-org-id to verify tests

* style: typos

* test: improve logging, temporarily use console

* chore: back to regular logging

* test: stubs for authinfo.hasAuthentications

* style: typos

* test: try single test

* test: return a promise?

* test: check authentications from instance

* test: stub method used by hasAuthentications

* test: run all the tests again

* test: try grant using stubbed listAll

* test: stub listAll for web:login

* test: store uses stub

* style: better error messages

* style: typo in nut name!

* refactor: changes from review comments

* refactor: getFields from authinfo in scratch-id

* Revert "refactor: getFields from authinfo in scratch-id"

This reverts commit c914648.

* style: comment for why we pass in the fields object

* fix: use decrypted fields, not result of getFields

* chore(release): 1.6.0 [ci skip]

* chore: sync github PR slack notification (#152)

Authored via Leif

* chore: add call to reestablish org full identity

* chore: set to fake return empty array

* chore: sync github PR slack notification (#152)

Authored via Leif

* chore: sync github PR slack notification (#152)

Authored via Leif

* chore: sync github PR slack notification (#152)

Authored via Leif

* feat: add accesstoken command tests

* chore: remove accesstokenfile parameter

* chore: requested review changes

* chore: clean up messages

* chore: update command example missing instanceurl

* chore: bump core version to 2.21.0

* chore: bump testkit to 1.1.2

* chore: dep changes

* chore: pin dev-scripts to 0.9.11

* chore: fix the tests

Co-authored-by: Benjamin Maggi <[email protected]>
Co-authored-by: SF-CLI-BOT <[email protected]>
Co-authored-by: Shane McLaughlin <[email protected]>
Co-authored-by: SF-CLI-BOT <[email protected]>
  • Loading branch information
5 people authored Jun 11, 2021
1 parent 5eca185 commit 3f7d75a
Show file tree
Hide file tree
Showing 16 changed files with 668 additions and 284 deletions.
20 changes: 10 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "monthly"
interval: 'monthly'
labels:
- "dependencies"
- 'dependencies'
open-pull-requests-limit: 100
pull-request-branch-name:
separator: "-"
separator: '-'
ignore:
- dependency-name: "typescript"
- dependency-name: "sinon"
- dependency-name: "string-ansi"
- dependency-name: "*"
update-types: ["version-update:semver-major"]
- dependency-name: 'typescript'
- dependency-name: 'sinon'
- dependency-name: 'string-ansi'
- dependency-name: '*'
update-types: ['version-update:semver-major']
37 changes: 15 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,64 +4,57 @@ All notable changes to this project will be documented in this file. See [standa

### [1.6.1](https://github.com/salesforcecli/plugin-auth/compare/v1.6.0...v1.6.1) (2021-05-27)


### Bug Fixes

* bump core version ([4ac6ee1](https://github.com/salesforcecli/plugin-auth/commit/4ac6ee11544f3cc5aff4aa8e34fa0b7b5120264c))
- bump core version ([4ac6ee1](https://github.com/salesforcecli/plugin-auth/commit/4ac6ee11544f3cc5aff4aa8e34fa0b7b5120264c))

## [1.6.0](https://github.com/salesforcecli/plugin-auth/compare/v1.5.4...v1.6.0) (2021-05-14)


### Features

* identify scratch orgs if hub is known during auth ([#148](https://github.com/salesforcecli/plugin-auth/issues/148)) ([3bd182a](https://github.com/salesforcecli/plugin-auth/commit/3bd182aeb60ee8c2e5ff3183d5c452b20cf46213))
- identify scratch orgs if hub is known during auth ([#148](https://github.com/salesforcecli/plugin-auth/issues/148)) ([3bd182a](https://github.com/salesforcecli/plugin-auth/commit/3bd182aeb60ee8c2e5ff3183d5c452b20cf46213))

### [1.5.4](https://github.com/salesforcecli/plugin-auth/compare/v1.5.3...v1.5.4) (2021-05-10)

### [1.5.3](https://github.com/salesforcecli/plugin-auth/compare/v1.5.2...v1.5.3) (2021-04-12)


### Bug Fixes

* catch lightning urls when passed via -r attribute ([d593e61](https://github.com/salesforcecli/plugin-auth/commit/d593e611724ddd1f45f2217b17e679b88762b3c6))
* test for lightning instance url ([d997e96](https://github.com/salesforcecli/plugin-auth/commit/d997e96031c7999bc48b62a73c32c1a4291b6944))
- catch lightning urls when passed via -r attribute ([d593e61](https://github.com/salesforcecli/plugin-auth/commit/d593e611724ddd1f45f2217b17e679b88762b3c6))
- test for lightning instance url ([d997e96](https://github.com/salesforcecli/plugin-auth/commit/d997e96031c7999bc48b62a73c32c1a4291b6944))

### [1.5.2](https://github.com/salesforcecli/plugin-auth/compare/v1.5.1...v1.5.2) (2021-04-09)

### [1.5.1](https://github.com/salesforcecli/plugin-auth/compare/v1.5.0...v1.5.1) (2021-03-17)


### Bug Fixes

* **sfdxauthurl:** error handling regression ([11535e1](https://github.com/salesforcecli/plugin-auth/commit/11535e19c28888a9fff361bad33d199629cd1c77))
- **sfdxauthurl:** error handling regression ([11535e1](https://github.com/salesforcecli/plugin-auth/commit/11535e19c28888a9fff361bad33d199629cd1c77))

## [1.5.0](https://github.com/salesforcecli/plugin-auth/compare/v1.4.10...v1.5.0) (2021-03-17)


### Features

* add compatibility between force:org:display output and auth:sfdxurl:store input ([77e3de9](https://github.com/salesforcecli/plugin-auth/commit/77e3de9a3a943a258ac4890e8c712c1f8b61495c))

- add compatibility between force:org:display output and auth:sfdxurl:store input ([77e3de9](https://github.com/salesforcecli/plugin-auth/commit/77e3de9a3a943a258ac4890e8c712c1f8b61495c))

### Bug Fixes

* allow auth:sfdxurl:store to use a json file ([a9f0300](https://github.com/salesforcecli/plugin-auth/commit/a9f0300f5a3d6deef6b5e44bd15cf354cd9ae92c))
* cleanup code and unit tests ([882014d](https://github.com/salesforcecli/plugin-auth/commit/882014d3fc25dcb020238f6e3acac02e2f59a135))
* improve error handling ([1cb5def](https://github.com/salesforcecli/plugin-auth/commit/1cb5def51c3cf06e87f2a6029868ebe135f04161))
* unit test for using json file ([f749fd3](https://github.com/salesforcecli/plugin-auth/commit/f749fd3c7512dfad416270f1053984ac13930a6c))
* unit tests now run on Windows ([119d49a](https://github.com/salesforcecli/plugin-auth/commit/119d49a0a1be3a9794cefab3cf17c384be62d613))
* update documentation ([5033f35](https://github.com/salesforcecli/plugin-auth/commit/5033f354de1108cf266f32b9b3b8600aaf634663))
* whoopsie ([5b6f898](https://github.com/salesforcecli/plugin-auth/commit/5b6f8981ff46af6cb9add70cb6f7bf0b1fc12ad4))
- allow auth:sfdxurl:store to use a json file ([a9f0300](https://github.com/salesforcecli/plugin-auth/commit/a9f0300f5a3d6deef6b5e44bd15cf354cd9ae92c))
- cleanup code and unit tests ([882014d](https://github.com/salesforcecli/plugin-auth/commit/882014d3fc25dcb020238f6e3acac02e2f59a135))
- improve error handling ([1cb5def](https://github.com/salesforcecli/plugin-auth/commit/1cb5def51c3cf06e87f2a6029868ebe135f04161))
- unit test for using json file ([f749fd3](https://github.com/salesforcecli/plugin-auth/commit/f749fd3c7512dfad416270f1053984ac13930a6c))
- unit tests now run on Windows ([119d49a](https://github.com/salesforcecli/plugin-auth/commit/119d49a0a1be3a9794cefab3cf17c384be62d613))
- update documentation ([5033f35](https://github.com/salesforcecli/plugin-auth/commit/5033f354de1108cf266f32b9b3b8600aaf634663))
- whoopsie ([5b6f898](https://github.com/salesforcecli/plugin-auth/commit/5b6f8981ff46af6cb9add70cb6f7bf0b1fc12ad4))

### [1.4.10](https://github.com/salesforcecli/plugin-auth/compare/v1.4.9...v1.4.10) (2021-03-03)

### [1.4.9](https://github.com/salesforcecli/plugin-auth/compare/v1.4.8...v1.4.9) (2021-02-23)


### Bug Fixes

* add actual error from API and throw ([bf29ff1](https://github.com/salesforcecli/plugin-auth/commit/bf29ff1d5c49e1dcd3dc82baf94345a3f979af32))
* should throw error with message ([95d53dd](https://github.com/salesforcecli/plugin-auth/commit/95d53ddf767c4b7ea5f289195595f11a0fd11c0f))
- add actual error from API and throw ([bf29ff1](https://github.com/salesforcecli/plugin-auth/commit/bf29ff1d5c49e1dcd3dc82baf94345a3f979af32))
- should throw error with message ([95d53dd](https://github.com/salesforcecli/plugin-auth/commit/95d53ddf767c4b7ea5f289195595f11a0fd11c0f))

### [1.4.8](https://github.com/salesforcecli/plugin-auth/compare/v1.4.7...v1.4.8) (2021-02-04)

Expand Down
37 changes: 19 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ We always recommend using the latest version of these commands bundled with the

## Install


```bash
sfdx plugins:install [email protected]
```
Expand Down Expand Up @@ -70,20 +69,21 @@ sfdx plugins
# Commands

<!-- commands -->
* [`sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authdevicelogin--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
* [`sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authjwtgrant--u-string--f-filepath--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
* [`sfdx auth:list [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authlist---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
* [`sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authlogout--a--p--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
* [`sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authsfdxurlstore--f-filepath--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
* [`sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authweblogin--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)

- [`sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authdevicelogin--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
- [`sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authjwtgrant--u-string--f-filepath--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
- [`sfdx auth:list [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authlist---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
- [`sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authlogout--a--p--u-string---apiversion-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
- [`sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authsfdxurlstore--f-filepath--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)
- [`sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`](#sfdx-authweblogin--i-string--r-url--d--s--a-string---json---loglevel-tracedebuginfowarnerrorfataltracedebuginfowarnerrorfatal)

## `sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]`

authorize an org using a device code

```
USAGE
$ sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
$ sfdx auth:device:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
Expand Down Expand Up @@ -126,7 +126,7 @@ authorize an org using the JWT flow

```
USAGE
$ sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
$ sfdx auth:jwt:grant -u <string> -f <filepath> -i <string> [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
Expand Down Expand Up @@ -159,8 +159,8 @@ OPTIONS
DESCRIPTION
Use a certificate associated with your private key that has been uploaded to a personal connected app.
If you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To
specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To
If you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To
specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To
specify a sandbox, set --instanceurl to https://test.salesforce.com.
ALIASES
Expand Down Expand Up @@ -200,7 +200,7 @@ log out from authorized orgs

```
USAGE
$ sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel
$ sfdx auth:logout [-a] [-p] [-u <string>] [--apiversion <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
Expand Down Expand Up @@ -238,7 +238,7 @@ Authorize an org using an SFDX auth URL

```
USAGE
$ sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel
$ sfdx auth:sfdxurl:store -f <filepath> [-d] [-s] [-a <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
Expand All @@ -262,9 +262,9 @@ OPTIONS
this command invocation
DESCRIPTION
Authorize a Salesforce org using an SFDX auth URL stored within a file. The URL must have the format
Authorize a Salesforce org using an SFDX auth URL stored within a file. The URL must have the format
"force://<refreshToken>@<instanceUrl>" or "force://<clientId>:<clientSecret>:<refreshToken>@<instanceUrl>".
You have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx
You have three options when creating the auth file. The easiest option is to redirect the output of the `sfdx
force:org:display --verbose --json` command into a file.
For example, using an org you have already authorized:
Expand All @@ -291,7 +291,7 @@ authorize an org using the web login flow

```
USAGE
$ sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
$ sfdx auth:web:login [-i <string>] [-r <url>] [-d] [-s] [-a <string>] [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
OPTIONS
Expand All @@ -318,8 +318,8 @@ OPTIONS
this command invocation
DESCRIPTION
If you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To
specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To log
If you specify an --instanceurl value, this value overrides the sfdcLoginUrl value in your sfdx-project.json file. To
specify a My Domain URL, use the format MyDomainName.my.salesforce.com (not MyDomainName.lightning.force.com). To log
in to a sandbox, set --instanceurl to https://test.salesforce.com.
ALIASES
Expand All @@ -332,4 +332,5 @@ EXAMPLES
```

_See code: [src/commands/auth/web/login.ts](https://github.com/salesforcecli/plugin-auth/blob/v1.6.1/src/commands/auth/web/login.ts)_

<!-- commandsstop -->
13 changes: 13 additions & 0 deletions command-snapshot.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
[
{
"command": "auth:accesstoken:store",
"plugin": "@salesforce/plugin-auth",
"flags": [
"instanceurl",
"json",
"loglevel",
"noprompt",
"setalias",
"setdefaultdevhubusername",
"setdefaultusername"
]
},
{
"command": "auth:device:login",
"plugin": "@salesforce/plugin-auth",
Expand Down
9 changes: 9 additions & 0 deletions messages/accesstoken.store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"description": "authorize an org using a Salesforce access token\nWhen run interactively, the command prompts you for the access token.\nTo use the command in a CI/CD script, set the SFDX_ACCESS_TOKEN environment variable to the access token.",
"examples": [
"sfdx auth:accesstoken:store --instanceurl https://login.salesforce.com",
"sfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com",
"export SFDX_ACCESS_TOKEN=00Dxx0000000000!xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nsfdx auth:accesstoken:store --instanceurl https://dev-hub.my.salesforce.com"
],
"invalidAccessTokenFormat": "The access token isn't in the correct format.\nIt should follow this pattern: %s."
}
7 changes: 1 addition & 6 deletions messages/logout.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{
"description": "log out from authorized orgs\nBy default, this command logs you out from your default scratch org.",
"examples": [
"sfdx auth:logout -u [email protected]",
"sfdx auth:logout -a",
"sfdx auth:logout -p"
],
"examples": ["sfdx auth:logout -u [email protected]", "sfdx auth:logout -a", "sfdx auth:logout -p"],
"all": "include all authenticated orgs",
"allLong": "Includes all authenticated orgs: for example, Dev Hubs, sandboxes, DE orgs, and expired, deleted, and unknown-status scratch orgs.",
"noPrompt": "do not prompt for confirmation",
"logoutCommandYesNo": "Are you sure you want to log out from these org(s)?\n%s\n\nImportant: You need a password to reauthorize scratch orgs. By default, scratch orgs have no password. If you still need your scratch orgs, run \"sfdx force:user:password:generate\" before logging out. If you don't need the scratch orgs anymore, run \"sfdx force:org:delete\" instead of logging out.\n\nLog out (y/n)?",
"specifiedBothUserAndAllError": "Specify either --targetusername or --all.",
"logoutOrgCommandSuccess": "Successfully logged out of orgs: %s"
Expand Down
6 changes: 5 additions & 1 deletion messages/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@
"noPromptAuth": "do not prompt for auth confirmation in demo mode",
"disableMasking": "disable masking of user input (for use with problematic terminals)",
"clientSecretStdin": "OAuth client secret of personal connected app?",
"invalidInstanceUrl": "Invalid instance URL. Specify a Salesforce instance URL using the format <domainname>.salesforce.com"
"invalidInstanceUrl": "Invalid instance URL. Specify a Salesforce instance URL using the format <domainname>.salesforce.com",
"accessTokenStdin": "Access token of user to use for authentication",
"noPrompt": "do not prompt for confirmation",
"overwriteAuthFileYesNo": "An authorization file exists for user \"%s\". Are you sure you want to save the file?\n\nSave the user (y/n)?",
"overwriteAccessTokenAuthUserFile": "A file already exists for user \"%s\", which is associated with the access token you provided.\nAre you sure you want to overwrite the existing file? (y/n)?"
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@oclif/plugin-command-snapshot": "^2.1.1",
"@salesforce/cli-plugins-testkit": "^1.1.5",
"@salesforce/dev-config": "^2.1.2",
"@salesforce/dev-scripts": "^0.9.11",
"@salesforce/dev-scripts": "0.9.11",
"@salesforce/plugin-command-reference": "^1.3.0",
"@salesforce/plugin-config": "^1.2.5",
"@salesforce/prettier-config": "^0.0.2",
Expand Down Expand Up @@ -47,7 +47,7 @@
"pretty-quick": "^3.1.0",
"shx": "0.3.3",
"sinon": "10.0.0",
"ts-node": "^8.10.2",
"ts-node": "^10.0.0",
"typescript": "^4.1.3"
},
"config": {
Expand Down Expand Up @@ -95,6 +95,9 @@
"web": {
"description": "authorize an org using a web browser"
},
"accesstoken": {
"description": "authorize an org using an access token"
},
"device": {
"description": "authorize an org using a device code"
}
Expand Down
Loading

0 comments on commit 3f7d75a

Please sign in to comment.