Sean Tymon edited this page Jan 23, 2018 · 13 revisions

jwt-auth provides a simple means of authentication within Laravel using JSON Web Tokens (spec)

  1. Installation
  2. Configuration
  3. Creating Tokens
  4. Authentication

Compatibility

Use the correct version that corresponds to your Laravel installation as seen below

Laravel version jwt-auth version
4.* 0.3.* 0.4.*
5.* && <5.5 0.5.*
5.* 1.0.*

Other Notes

dingo/api has in-built support for this package. It's a great package and can save you tons of time if you are building a fully fledged API. Check it out

If you're using Angular and building a Single page app then you might find angular-locker helpful for storing your tokens on the client using local and session storage.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.