You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
export CODER_SESSION_TOKEN=abcdefgh
coder login https://pr9327.test.cdr.dev
You are signed out or your session has expired. Please sign in again to continue.
Try logging in using 'coder login <url>'.
Clearing the variable allows you to login fine,
coder@coder-coder-kube-7f64bf8f74-cjnsh:~$ CODER_SESSION_TOKEN=
coder@coder-coder-kube-7f64bf8f74-cjnsh:~$ coder login https://pr9327.test.cdr.dev
Open the following in your browser:
https://pr9327.test.cdr.dev/cli-auth
> Paste your token here:
> Welcome to Coder, coder! You're authenticated.
The text was updated successfully, but these errors were encountered:
matifali
added
s2
Broken use cases or features (with a workaround). Only humans may set this.
bug
Used to filter all bug issues
labels
Aug 25, 2023
matifali
changed the title
If CODER_SESSION_TOKEN is set to soem invalid token CLi can't login
If CODER_SESSION_TOKEN is set to some invalid token CLI can't login
Aug 25, 2023
)
Prompt the user if they want to re-authenticate if they run
`coder login` when already authenticated.
Does not apply if they provided a token via flag or ENV
variable. A new token should be generated an stored in that situation
unless the `--use-token-as-session` flag was also used.
fix(cli): prompt user on login attempt with invalid ENV token
Fixes issue where if invalid token was set as ENV
variable a user would be unable to login until the ENV
variable was cleared.
User will now be informed that the token is invalid and
prompted to login normally.
See
Clearing the variable allows you to login fine,
The text was updated successfully, but these errors were encountered: