Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Remove --app_id flag from jwt:generate
Browse files Browse the repository at this point in the history
  • Loading branch information
cbetta committed Mar 21, 2017
1 parent 52e350b commit a969d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ Generate a JWT for your application. Optionally supports extra claims to be pass
```
> nexmo jwt:generate path/to/private.key subject=username iat=1475861732
[...JWT String...]
> nexmo jwt:generate path/to/private.key subject=username iat=1475861732 --app_id asdasdas-asdd-2344-2344-asdasdasd345
> nexmo jwt:generate path/to/private.key subject=username iat=1475861732 application_id=asdasdas-asdd-2344-2344-asdasdasd345
> JWT: [...JWT String...]
```

Expand Down
3 changes: 1 addition & 2 deletions src/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,6 @@ commander

commander
.command('jwt:generate <private_key> [claims...]')
.option('--app_id <app_id>', 'the application ID to be included in the claim')
.description('Generate a JWT (JSON Web Token)')
.on('--help', () => {
emitter.log(' Examples:');
Expand All @@ -571,7 +570,7 @@ commander
emitter.log(' ');
emitter.log(' $ nexmo jwt:generate path/to/private.key subject=username iat=1475861732');
emitter.log(' ');
emitter.log(' $ nexmo jwt:generate path/to/private.key subject=username iat=1475861732 --app_id asdasdas-asdd-2344-2344-asdasdasd345');
emitter.log(' $ nexmo jwt:generate path/to/private.key subject=username iat=1475861732 application_id=asdasdas-asdd-2344-2344-asdasdasd345');
emitter.log(' ');
})
.action(request.generateJwt.bind(request));
Expand Down

0 comments on commit a969d36

Please sign in to comment.