-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If CODER_SESSION_TOKEN
is set to some invalid token CLI can't login
#9329
Comments
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
If Aug 25, 2023
CODER_SESSION_TOKEN
is set to soem invalid token CLi can't loginCODER_SESSION_TOKEN
is set to some invalid token CLI can't login
32 tasks
elasticspoon
added a commit
to elasticspoon/coder
that referenced
this issue
Apr 7, 2024
) 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.
I think this is a reasonable expectation. We can't unset environment variables for the user. |
@kylecarbs #12883 claims to fix this. Probably you should review. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See
Clearing the variable allows you to login fine,
The text was updated successfully, but these errors were encountered: