Skip to main content

sunday_slate/auth/
user.rs

1use crate::User;
2use axum_login::AuthUser;
3
4impl AuthUser for User {
5    type Id = i64;
6    fn id(&self) -> Self::Id {
7        self.id
8    }
9    fn session_auth_hash(&self) -> &[u8] {
10        self.password_hash.as_bytes()
11    }
12}