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

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

atlance/jwt-auth
================

Symfony JWT Authentication

09PHP

Since Nov 28Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (6)Used By (0)

Symfony 7: JWT Authentication
=============================

[](#symfony-7-jwt-authentication)

[![composer.lock](https://camo.githubusercontent.com/7a3883ba6e41694e2592e3047f9594365b24d1224940f9998d7ad587bfa69f9f/687474703a2f2f706f7365722e707567782e6f72672f706870756e69742f706870756e69742f636f6d706f7365726c6f636b)](https://packagist.org/packages/phpunit/phpunit)[![PHP analyze & tests](https://github.com/atlance/jwt-auth/actions/workflows/php-analyze.yml/badge.svg)](https://github.com/atlance/jwt-auth/actions/workflows/php-analyze.yml)[![Psalm level](https://camo.githubusercontent.com/33c32ae2dbc667903a5d68d1e6ffb4f3e12f1eb8262d734794d74c6167ad7e85/68747470733a2f2f73686570686572642e6465762f6769746875622f61746c616e63652f6a77742d617574682f6c6576656c2e737667)](https://camo.githubusercontent.com/33c32ae2dbc667903a5d68d1e6ffb4f3e12f1eb8262d734794d74c6167ad7e85/68747470733a2f2f73686570686572642e6465762f6769746875622f61746c616e63652f6a77742d617574682f6c6576656c2e737667)[![Psalm coverage](https://camo.githubusercontent.com/7bb7d8667ef8d76cacd4cee47fd9e3331545767e95d29640b34177eaf97c7252/68747470733a2f2f73686570686572642e6465762f6769746875622f61746c616e63652f6a77742d617574682f636f7665726167652e737667)](https://camo.githubusercontent.com/7bb7d8667ef8d76cacd4cee47fd9e3331545767e95d29640b34177eaf97c7252/68747470733a2f2f73686570686572642e6465762f6769746875622f61746c616e63652f6a77742d617574682f636f7665726167652e737667)[![GitHub](https://camo.githubusercontent.com/3d63a7e6e05ca0dafbdd1cb2da881539a5ccd543deb25f6d8d1174cd11815bfe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c2532306d61782d627269676874677265656e2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/3d63a7e6e05ca0dafbdd1cb2da881539a5ccd543deb25f6d8d1174cd11815bfe/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c2532306d61782d627269676874677265656e2e7376673f7374796c653d666c6174)[![codecov](https://camo.githubusercontent.com/3d9d4d86ccdb7c2c49cdac29562dfeb19ac73f236788ebd767c7eacefabe358b/68747470733a2f2f636f6465636f762e696f2f67682f61746c616e63652f6a77742d617574682f67726170682f62616467652e7376673f746f6b656e3d45563945564d5452544c)](https://codecov.io/gh/atlance/jwt-auth)

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

[](#installation)

1. [Generate](/docs/generate_keys.md) keys.
2. Install package via composer: `composer require atlance/jwt-auth ^7.0`.
3. Configure:
    - Copy/paste [configuration](/src/Resources/config/atlance_jwt_auth.yaml) to `config/packages/atlance_jwt_auth.yaml`.
    - Copy/paste [environments](/.env.dist) to your `.env` and configure.

Use Case
--------

[](#use-case)

### Create:

[](#create)

- **Implemened:** `Atlance\JwtAuth\Security\UseCase\Create\Token\Handler`.
- **Example**:

```
