Can I access the currently logged in user in /frontend with
Yii::$app->user->identity from my /backend repository? Does replacing
$frontend do the trick?
I’m running the advanced template and our users log in in our /frontend, but now I need the user information in /backend to check authentication within an internal api. Can anyone help?
Im sure my project works fine from both side, i.e log into one and your in on both.
My user Model sits in Common. i know not much help
I think you have to configure the identityClass of frontend and backend to be the same model.
Which currently logged-in user are you wanting to access? Remember, there could be many, logged in at the same time from anywhere in the world.