Skip to content
Adel Lamallam edited this page Sep 11, 2017 · 1 revision

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.* 0.5.*

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.