We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
spacetime login
Steps:
https://spacetimedb.com/login-cli
https://spacetimedb.com/login-cli?nonce={the nonce}
/v1/identity
--anonymous
The text was updated successfully, but these errors were encountered:
ChatGPT:
fn open_browser(url: &str) { let open_command = match env::consts::OS { "windows" => Command::new("cmd").args(&["/C", "start", url]), "macos" => Command::new("open").arg(url), "linux" => Command::new("xdg-open").arg(url), _ => { eprintln!("Unsupported OS"); return; } }; if let Err(e) = open_command.status() { eprintln!("Failed to open browser: {}", e); } }
Instead of "unsupported OS", we'd probably just print the URL and wait to hear back on the websocket. Other CLIs do this.
Sorry, something went wrong.
I saw that we also pull in this crate somewhere in spacetimedb https://crates.io/crates/webbrowser, so caninstead just reuse it
login
bfops
PuruVJ
Successfully merging a pull request may close this issue.
Steps:
https://spacetimedb.com/login-cli
https://spacetimedb.com/login-cli?nonce={the nonce}
/v1/identity
endpoint to receive a SpacetimeDB token--anonymous
.The text was updated successfully, but these errors were encountered: