feat: generate a new session with coder login --token (#8275)

* feat: coder login --token generates a new session

Makes sure /logout does not delete the inputted token
* flag to enable previous behavior if needed
This commit is contained in:
Steven Masley
2023-07-05 08:59:38 -04:00
committed by GitHub
parent 88c35d3f04
commit 9a7705c656
5 changed files with 51 additions and 11 deletions
+4
View File
@@ -19,5 +19,9 @@ Authenticate with Coder deployment
Specifies a username to use if creating the first user for the
deployment.
--use-token-as-session bool
By default, the CLI will generate a new session token when logging in.
This flag will instead use the provided token as the session token.
---
Run `coder --help` for a list of global options.