Join GitHub today
[DX] Added CurrentUserProvider service #14407
I believe it would be nice to make it little easier to retrieve the current user. This provider will hide the complexity with the token and check if the
referenced this pull request
Apr 19, 2015
I know that the anonymous user is also considered as a user. But IMHO it's very rare that you bother about the anonymous user. If you do
The intention is to make it easier in the 90% of the cases when you just want to fetch your user model for the current user without any extra check for tokens and if user is the string ´anon.`.