Skip to content

Commit 2a8880c

Browse files
committed
Change default expiration
1 parent 4565ddb commit 2a8880c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Options:
2626
10-character Team ID, obtained from your developer account.
2727
[string] [required]
2828
--iat The Issued At (iat), relative to now. Uses `zeit/ms` strings (e.g
29-
'0', '2 days', '10 years')
29+
'0', '2d', '1y')
3030
[string] [default: 0, current time (e.g 0 seconds from "now")]
3131
--exp The Expiration Time (exp) relative to `iat`, using a `zeit/ms`
32-
string (e.g '1hr, '2 days', '10 years').
33-
[string] [default: 1hr, 1 hour expiration]
32+
string (e.g '1hr, '2d', '1y').
33+
[string] [default: 364d, 364 day expiration]
3434
--key MapKit private key file path [required]
3535
--origin The Origin (origin) key. This key's value is a fully qualified
3636
domain that should match the Origin header passed by a browser.

src/cli.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ const argv = yargs
4646
default: '0',
4747
defaultDescription: '0, current time (e.g 0 seconds from "now")',
4848
type: 'string',
49-
describe: 'The Issued At (iat), relative to now. Uses `zeit/ms` strings (e.g \'0\', \'2 days\', \'10 years\')',
49+
describe: 'The Issued At (iat), relative to now. Uses `zeit/ms` strings (e.g \'0\', \'2d\', \'1y\')',
5050
},
5151
'exp': {
52-
default: '1hr',
53-
defaultDescription: '1hr, 1 hour expiration',
54-
describe: 'The Expiration Time (exp) relative to `iat`, using a `zeit/ms` string (e.g \'1hr\, \'2 days\', \'10 years\').',
52+
default: '364d',
53+
defaultDescription: '364d, 364 day expiration',
54+
describe: 'The Expiration Time (exp) relative to `iat`, using a `zeit/ms` string (e.g \'1hr\, \'2d\', \'1y\').',
5555
type: 'string',
5656
},
5757
'key': {

0 commit comments

Comments
 (0)