过期后如何刷新JWT令牌(Angular 1.5 + Laravel 5.2)

问题描述:

将基于JWT令牌的身份验证与Angular前端和Laravel后端(RESTful api)结合使用的最佳方式和最安全的方法是什么?

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

与此类似: http://johnsonsu.com/jwt -tokens-issues-in-angularjs-satellizer/

先谢谢了.

对于angularjsLaravel之间的JWT authentication,您可以使用卫星化器.对于后端(即Laravel实施),您可以在此处找到示例代码使用satellizer进行社交登录或仅用于常规登录.

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.

您必须安装jwt-auth以获得 laravel 后端JWT支持.您可以将某些博客引至入门

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