tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.28k stars 1.55k forks source link

How to use jwt auth to blade template in Laravel? #829

Open ranaclyde opened 8 years ago

ranaclyde commented 8 years ago

Hello, I dont know how pass the token to the view from the controller. Can somebody help me? Thanks

ghost commented 8 years ago

why do you need JWT authentication if you are using server side page rendering ? Just use laravel default built in authentication functionality.

https://laravel.com/docs/5.3/authentication

mattpramschufer commented 8 years ago

I too would like some insight on this. We have a Laravel app that uses an external API for authentication, we are not creating a single page app or Angular type app, as we are going for separation of the API vs the actual web app.