Support the ongoing development of Laravel.io →
posted 5 years ago
Authentication

I got a vue application inside laravel where i need to implement a real time feature upon successful authentication. it's a stateless authentication.

The authentication works fine, however i am not able to subscribe to a global presence channel using laravel echo.

I am also passing the auth token inside the echo configuration object like this:

auth: {
		headers: {
		'Authorization': token
	}
}

I've also set the broadcast::route() middleware to broadcast::route(['middleware' => ['jwt,auth']]) because i am tymondesign/jwt package for creating tokens,

Also declared broadcast route which returns the auth user data.

Please advice me on this.

Thanks

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.