Skip to content

Commit

Permalink
Change default expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
kchung committed Mar 9, 2020
1 parent 4565ddb commit 2a8880c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Options:
10-character Team ID, obtained from your developer account.
[string] [required]
--iat The Issued At (iat), relative to now. Uses `zeit/ms` strings (e.g
'0', '2 days', '10 years')
'0', '2d', '1y')
[string] [default: 0, current time (e.g 0 seconds from "now")]
--exp The Expiration Time (exp) relative to `iat`, using a `zeit/ms`
string (e.g '1hr, '2 days', '10 years').
[string] [default: 1hr, 1 hour expiration]
string (e.g '1hr, '2d', '1y').
[string] [default: 364d, 364 day expiration]
--key MapKit private key file path [required]
--origin The Origin (origin) key. This key's value is a fully qualified
domain that should match the Origin header passed by a browser.
Expand Down
8 changes: 4 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ const argv = yargs
default: '0',
defaultDescription: '0, current time (e.g 0 seconds from "now")',
type: 'string',
describe: 'The Issued At (iat), relative to now. Uses `zeit/ms` strings (e.g \'0\', \'2 days\', \'10 years\')',
describe: 'The Issued At (iat), relative to now. Uses `zeit/ms` strings (e.g \'0\', \'2d\', \'1y\')',
},
'exp': {
default: '1hr',
defaultDescription: '1hr, 1 hour expiration',
describe: 'The Expiration Time (exp) relative to `iat`, using a `zeit/ms` string (e.g \'1hr\, \'2 days\', \'10 years\').',
default: '364d',
defaultDescription: '364d, 364 day expiration',
describe: 'The Expiration Time (exp) relative to `iat`, using a `zeit/ms` string (e.g \'1hr\, \'2d\', \'1y\').',
type: 'string',
},
'key': {
Expand Down

0 comments on commit 2a8880c

Please sign in to comment.