implement client app

This commit is contained in:
2025-12-16 09:20:08 -06:00
parent 72e52a7d03
commit 5a288d4b08
5 changed files with 80 additions and 88 deletions

View File

@@ -0,0 +1 @@
pub mod repos;

View File

@@ -0,0 +1,12 @@
use crate::models::app::CodeLoginData;
use crate::models::email::Email;
use crate::models::opaque::UserSecretKey;
pub trait ClientRepo {
async fn get_secret_key(&self) -> anyhow::Result<UserSecretKey, String>;
async fn set_secret_key(&self, email: &Email,user_secret_key: &UserSecretKey) -> anyhow::Result<(),String>;
async fn get_login_data(&self) -> anyhow::Result<CodeLoginData, String>;
async fn set_login_data(&self, data: CodeLoginData) -> anyhow::Result<(), String>;
async fn set_email(&self, email: &Email) -> anyhow::Result<(), String>;
async fn get_email(&self) -> anyhow::Result<Email, String>;
}

View File

@@ -1 +1,2 @@
pub mod opaque;
pub(crate) mod client_app;