PHPackages                             jobilla/laravel-jwt-validate - 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. jobilla/laravel-jwt-validate

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

jobilla/laravel-jwt-validate
============================

v3.0.0(2y ago)012.8k1MITPHPCI failing

Since Jan 8Pushed 2y ago12 watchersCompare

[ Source](https://github.com/jobilla/laravel-jwt-validate)[ Packagist](https://packagist.org/packages/jobilla/laravel-jwt-validate)[ RSS](/packages/jobilla-laravel-jwt-validate/feed)WikiDiscussions master Synced yesterday

READMEChangelog (9)Dependencies (4)Versions (11)Used By (0)

Laravel JWT Validate
====================

[](#laravel-jwt-validate)

This package is meant to be used in an architecture where you have multiple Laravel applications working together, with one of them issuing JWTs with a secret generated through an asymmetric encryption algorithm (RS256 for now). This is mostly to aid with use Laravel Passport tokens in service-oriented architectures where only the Auth service might be able to access all auth data.

JWT Validate will check the integrity of an incoming authentication token using your primary installation's public key. It will also hydrate a user model and make it available through the regular `Auth::user()` using data encoded in your JWT.

Note that Passport Validate should **not** be used on a project that already uses Laravel Passport. This is meant exclusively for applications that may not have access to the OAuth private key, Passport database tables, or other required elements of Laravel Passport.

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

[](#installation)

### Install through Composer

[](#install-through-composer)

```
composer require jobilla/laravel-jwt-validate
```

### Add the auth config

[](#add-the-auth-config)

To enable the guard, add the following to your `config/auth.php`

```
