chore: fix struct definition
This commit is contained in:
parent
b7df108967
commit
de2cce474c
2 changed files with 23 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue