PHPackages                             korioinc/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. korioinc/laravel-jwt-auth

ActiveLibrary

korioinc/laravel-jwt-auth
=========================

This is my package laravel-jwt-auth

1.0.1(1mo ago)04↓100%MITPHPPHP ^8.4CI passing

Since Mar 18Pushed 1mo agoCompare

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

READMEChangelog (1)Dependencies (13)Versions (2)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 korioinc/laravel-jwt-auth
```

Publish the configuration file:

```
php artisan vendor:publish --provider="Korioinc\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:

```
