chore: changes to expire param create token
This commit is contained in:
parent
ca511bd459
commit
02b83bf26e
1 changed files with 1 additions and 1 deletions
|
@ -1559,7 +1559,7 @@ App::post('/v1/users/:userId/tokens')
|
|||
->label('sdk.response.model', Response::MODEL_TOKEN)
|
||||
->param('userId', '', new CustomId(), 'User ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
|
||||
->param('length', 6, new Range(4, 128), 'Token length in chars.', true)
|
||||
->param('expire', Auth::TOKEN_EXPIRATION_UNIVERSAL, new Range(1, Auth::TOKEN_EXPIRATION_LOGIN_LONG), 'Token expiration in seconds from now.', true)
|
||||
->param('expire', Auth::TOKEN_EXPIRATION_UNIVERSAL, new Range(60, Auth::TOKEN_EXPIRATION_LOGIN_LONG), 'Token expiration in seconds.', true)
|
||||
->inject('request')
|
||||
->inject('response')
|
||||
->inject('project')
|
||||
|
|
Loading…
Reference in a new issue