Not being authenticate through broadcasting/auth from external JS client(eg. VueCLI) #32800
-
I am working on an application where my server should be aware about user's channel subscription. So, I was trying to use Pusher's presence channel but somehow I am not being able to pass the broadcasting authentication. Our API client's are using our Laravel's API through bearer token authentication. Seems I am missing something silly: My setup and approach is as below: My Set upLaravel("laravel/framework": "5.8.*") as Server How I am trying?In my vue cli app:
In LaravelTo ensure that the user can get authenticated through api token. Added this in Laravel's
in
What am I getting?
I have even tried to make custom authentication(inspired by an issue discussion here) as below:In
In
Getting Same error. What am I missing? What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Got it my issue was in
Should be:
|
Beta Was this translation helpful? Give feedback.
Got it my issue was in
routes/channels.php
Broadcast::channel('presence-test-{id}'....
Should be:
Broadcast::channel('test-{id}'....