Skip to content

Skip token if certificate is set #394

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

Closed
code-asher opened this issue Apr 18, 2024 · 0 comments
Closed

Skip token if certificate is set #394

code-asher opened this issue Apr 18, 2024 · 0 comments
Assignees

Comments

@code-asher
Copy link
Member

code-asher commented Apr 18, 2024

If some API request gets a 401, instead of showing the token prompt again, show the error with a button to retry.

Also, there is no reason to run coder login when there is no token. However, we rely on login to store the url in the config directory (which we store on the recent connection) to use later in the recents window, so store the url somewhere else (on the recent connection itself seems like the best place, and it can probably replace the config directory entirely since we can reconstruct it from the url).

Did not link it, but this takes care of the recents window: 5433d0a

@code-asher code-asher self-assigned this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant