PHPackages                             jskorlol/laravel-jwt-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. jskorlol/laravel-jwt-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

jskorlol/laravel-jwt-auth
=========================

This is my package laravel-jwt-auth

1.0.0(10mo ago)0124↓100%[3 PRs](https://github.com/jskorlol/laravel-jwt-auth/pulls)MITPHPPHP ^8.4CI passing

Since Jun 22Pushed 1mo agoCompare

[ Source](https://github.com/jskorlol/laravel-jwt-auth)[ Packagist](https://packagist.org/packages/jskorlol/laravel-jwt-auth)[ Docs](https://github.com/jskorlol/laravel-jwt-auth)[ GitHub Sponsors](https://github.com/jskorlol)[ RSS](/packages/jskorlol-laravel-jwt-auth/feed)WikiDiscussions main Synced 2mo ago

READMEChangelog (1)Dependencies (13)Versions (4)Used By (0)

Laravel JWT Auth
================

[](#laravel-jwt-auth)

A Laravel package for easy implementation of JWT (JSON Web Token) authentication. Fully compliant with JWT standard (RFC 7519).

Key Features
------------

[](#key-features)

- 🔐 JWT Standard (RFC 7519) Compliant
- 🔄 Automatic Token Refresh with Grace Period
- 🎯 Custom User Properties Support (props)
- 🚀 Seamless Integration with Laravel Auth System

Installation
------------

[](#installation)

Install the package via composer:

```
composer require jskorlol/laravel-jwt-auth
```

Publish the configuration file:

```
php artisan vendor:publish --provider="Jskorlol\JwtAuth\JwtAuthServiceProvider"
```

Configuration
-------------

[](#configuration)

### 1. Environment Setup

[](#1-environment-setup)

Add the JWT secret key to your `.env` file:

```
JWT_SECRET_KEY=your-secret-key-here
```

### 2. User Model Setup

[](#2-user-model-setup)

Implement `JwtUserInterface` and use `JwtTrait` in your User model:

```
