Laravel 5.3 Passport JWT Authentication

前端 未结 4 1753
再見小時候
再見小時候 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 12:57

    You got this all mixed up. Passport is ideal for Facebook-like applications where you want your users’ clients to securely authenticate to your API.

    If all you are doing is building a rest API for example a health and fitness app, using the Tyson JWT package suffices. This is because you don’t have the middleman.

提交回复
热议问题