Skip to content
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

Fix identities authenticate crash #150

Merged
merged 2 commits into from
Mar 4, 2024
Merged

Conversation

tegefaulkes
Copy link
Contributor

@tegefaulkes tegefaulkes commented Mar 1, 2024

Description

This PR addresses crashing when using identities authenticate if it fails to open a browser.

Issues Fixed

Tasks

  • 1. Transplant Browser utility function from Polykey into Polykey-CLI.
  • 2. Fix Browser throw when failing to spawn browser rather than crashing the process.

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

@tegefaulkes tegefaulkes self-assigned this Mar 1, 2024
@CMCDragonkai
Copy link
Member

I'm not sure it makes sense to have this in the CLI. The whole point is to share the functionality between CLI, desktop and mobile. This the library can provide the necessary platform detection.

@tegefaulkes
Copy link
Contributor Author

I can apply the fix to Polykey then.

…browser

If it fails to find a browser with `ENOENT` then it will just ignore that. All other errors will still be thrown.

[ci skip]
@tegefaulkes
Copy link
Contributor Author

Alright, I've fixed the browser utility function in Polykey and using that now.

@tegefaulkes tegefaulkes merged commit 35ca54e into staging Mar 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

identities authenticate fails without a desktop enviroment
2 participants