diff --git a/bffhd/authentication/mod.rs b/bffhd/authentication/mod.rs index f40fc3a..c268a96 100644 --- a/bffhd/authentication/mod.rs +++ b/bffhd/authentication/mod.rs @@ -32,7 +32,7 @@ impl SessionCallback for Callback { ) -> Result<(), SessionError> { if let Some(authid) = context.get_ref::() { request.satisfy_with::(|| { - let user = self.users.get_user(authid).ok_or(CallbackError::NoValue)?; + let user = self.users.get_user_by_token(authid).ok_or(CallbackError::NoValue)?; let kv = user .userdata .kv