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
+8
View File
@@ -47,3 +47,11 @@ Specifies whether a trial license should be provisioned for the Coder deployment
| Environment | <code>$CODER_FIRST_USER_USERNAME</code> |
Specifies a username to use if creating the first user for the deployment.
### --use-token-as-session
| | |
| ---- | ----------------- |
| Type | <code>bool</code> |
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.