Add API tokens support #9

Merged
pierre merged 40 commits from api into master 2024-04-23 17:04:45 +00:00
Showing only changes of commit 418055a640 - Show all commits

View File

@ -130,6 +130,8 @@ pub async fn create(t: &NewToken) -> anyhow::Result<(Token, TokenPrivKey)> {
delete_after_inactivity: t.delete_after_inactivity,
};
token.save()?;
Ok((token, priv_key))
}