feat(js): export AuthRequest in js as a wrapper around native

This commit is contained in:
nazeh
2025-02-09 22:45:58 +03:00
parent 5fbbdb577b
commit 62ddf0fbe6
25 changed files with 1539 additions and 1579 deletions

View File

@@ -1,10 +1,8 @@
use anyhow::Result;
use clap::Parser;
use pubky::Client;
use pubky::{Client, PublicKey};
use std::path::PathBuf;
use pubky_common::crypto::PublicKey;
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Cli {
@@ -29,7 +27,7 @@ async fn main() -> Result<()> {
println!("Enter your recovery_file's passphrase to signup:");
let passphrase = rpassword::read_password()?;
let keypair = pubky_common::recovery_file::decrypt_recovery_file(&recovery_file, &passphrase)?;
let keypair = pubky::recovery_file::decrypt_recovery_file(&recovery_file, &passphrase)?;
println!("Successfully decrypted the recovery file, signing up to the homeserver:");