feat: add auth things

This commit is contained in:
Sandro Eiler 2023-10-07 22:14:22 +02:00
parent 42a75ba800
commit 88c4045d33
7 changed files with 182 additions and 20 deletions

View file

@ -6,6 +6,12 @@ pub type Result<T> = core::result::Result<T, Error>;
#[derive(Debug)]
pub enum Error {
LoginFail,
// -- Auth errors.
AuthFailNoAuthTokenCookie,
AuthFailTokenWrongFormat,
// -- Model errors.
PropertyDeleteFailIdNotFound { id: u64 },
}