Laravel 5.3 Passport JWT Authentication

前端 未结 4 1745
再見小時候
再見小時候 2020-12-23 12:31

Earlier when I was using laravel 5.2, i used a third party package https://github.com/tymondesigns/jwt-auth/ for making JWT based authentication. Where we just had to pass t

4条回答
  •  死守一世寂寞
    2020-12-23 13:04

    If you are not interested in OAuth and Client thing, you probably want to use pure JWT authentication, if so, you can check out this package:

    https://github.com/miladrahimi/larajwt

    It declares a new authentication driver named "jwt" to protect your authenticated routes, it provides a service to generate jwt from your users, and some other tools like logout, user model caching, filters for checking extra properties of users and so on.

提交回复
热议问题