efa auth settings token
Configures and displays the expiration settings for authentication tokens.
Syntax
Parameters
- --type { cli | access | refresh }
- Specifies the type of token you want to update.
- --hours num
- Specifies the number of hours that should elapse before a token expires.
- --minutes num
- Specifies the number of minutes that should elapse before a token expires.
Examples
This example sets the CLI token to expire after two hours.
$ efa auth settings token update --type CLI --hours 2 Successfully updated the token expiry time. +------+-------+---------+ | Type | Hours | Minutes | +------+-------+---------+ | CLI | 2 | 0 | +------+-------+---------+ --- Time Elapsed: 193.455466ms ---
This example displays the current expiration settings.
$ efa auth settings token show +---------+-------+---------+ | Type | Hours | Minutes | +---------+-------+---------+ | ACCESS | 1 | 0 | +---------+-------+---------+ | REFRESH | 8 | 0 | +---------+-------+---------+ | CLI | 2 | 0 | +---------+-------+---------+