File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ USAGE
179179 $ gr4vy token expiresIn=10d --scope=buyers.read --scope=buyers.write
180180
181181FLAGS
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
206206FLAG 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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments