Skip to content

Commit 19d6e77

Browse files
committed
fix: Fix expiresIn flag usage
1 parent 1584e0c commit 19d6e77

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ USAGE
179179
$ gr4vy token expiresIn=10d --scope=buyers.read --scope=buyers.write
180180
181181
FLAGS
182-
-e, --expires=<value>
182+
-e, --expiresIn=<value>
183183
[default: 1h] The expiry of the token
184184
185185
-s, --scope=<option>...
@@ -204,7 +204,7 @@ DESCRIPTION
204204
205205
206206
FLAG DESCRIPTIONS
207-
-e, --expires=<value> The expiry of the token
207+
-e, --expiresIn=<value> The expiry of the token
208208
209209
The expiration of the token in shorthand notation, for example "1h" or 1d" for 1 hour and 1 day.
210210

src/commands/token.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ restricted to any specific frontend scopes only.
1212
static usage = "token expiresIn=10d --scope=buyers.read --scope=buyers.write";
1313

1414
static flags = {
15-
expires: Flags.string({
15+
expiresIn: Flags.string({
1616
char: "e",
1717
summary: "The expiry of the token",
1818
description:
19-
'The expiration of the token in shorthand notation, for example "1h" or 1d" for 1 hour and 1 day.',
19+
"The expiration expressed in seconds or a string describing a time span vercel/ms.",
2020
multiple: false,
2121
default: "1h",
2222
required: false,
@@ -91,7 +91,7 @@ restricted to any specific frontend scopes only.
9191
const client = new Client(this.clientConfig as any);
9292
const token = await client.getBearerToken(
9393
flags.scopes as JWTScope[],
94-
flags.expiration
94+
flags.expiresIn
9595
);
9696

9797
if (flags.debug) {

0 commit comments

Comments
 (0)