ezidam: apps: archive, and revoke refresh tokens associated with app

This commit is contained in:
Philippe Loctaux 2023-04-02 01:59:40 +02:00
parent 956f28f7e5
commit e06bd31b4c
11 changed files with 159 additions and 2 deletions

View file

@ -103,4 +103,8 @@ impl App {
) -> Result<Option<()>, Error> {
Ok(DatabaseApps::new_secret(conn, self.id.as_ref(), secret.hash()).await?)
}
pub async fn archive(&self, conn: impl SqliteExecutor<'_>) -> Result<Option<()>, Error> {
Ok(DatabaseApps::archive(conn, self.id.as_ref()).await?)
}
}