angularjslaravel-5jwtsatellizer

How to refresh JWT token after expired ( Angular 1.5 + Laravel 5.2)


What is the best and most secured way of using JWT token based authentication with Angular front-end and Laravel back-end (RESTful api)?

It is similar to this: http://johnsonsu.com/jwt-tokens-issues-in-angularjs-satellizer/

Thanks in advance.


Solution

  • For JWT authentication between angularjs and Laravel you can use Satellizer. For backend i.e Laravel implementation you can find sample code here You can use satellizer for social login or just for normal login.

    You have to install jwt-auth for laravel backend JWT support. You can refer some blogs to getting started