Friday, March 31, 2017

Event Broadcasting Does not working json token web by authencatio not have request()->user()

I use JWT "json - web - token" for authentication and it does not save request () -> user () when I work with Authorizing Presence Channels always returns an error status 403 code in Route :: auth by code check:

 if(!$Request->user ()) {
   Throw new HttpException (403);

Authencation jwt of me not has request->user();

How can I modify this code from the outside like

If (JWTAuth :: guard ("member") -> user ()

Please help !



via Tran Hoang Hiep

Advertisement