chore: fix struct definition

This commit is contained in:
Jesús Pérez Lorenzo 2021-10-19 20:58:19 +01:00
parent b7df108967
commit de2cce474c
2 changed files with 23 additions and 0 deletions

View file

@ -23,6 +23,7 @@ use app_env::{
};
use app_auth::{
AuthStore,
User,
UserCtx,
LoginRequest,
// BEARER_PREFIX,
@ -120,4 +121,8 @@ impl ReqEnv {
pub async fn user_authentication(&self) -> anyhow::Result<UserCtx> {
self.req.user_authentication().await
}
#[allow(clippy::missing_errors_doc)]
pub async fn get_user(&self) -> User {
self.req.get_user().await
}
}