Return Result from Authenticator::verify_user_token()

This commit is contained in:
Xiretza 2024-02-10 11:35:18 +00:00
parent 97ed869230
commit 62390aa0ad

View file

@ -24,7 +24,7 @@ impl Authenticator {
}
#[instrument]
pub async fn verify_user_token(&self, username: &str, token: &UserToken) -> bool {
pub async fn verify_user_token(&self, username: &str, token: &UserToken) -> Result<(), ()> {
todo!()
}
}