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

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

love-dj/jwt-auth
================

JSON Web Token Authentication for thinkphp

v1.0.0(4y ago)020Apache-2.0PHPPHP &gt;=7.1.0

Since Sep 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/love-dj/think-jwt)[ Packagist](https://packagist.org/packages/love-dj/jwt-auth)[ RSS](/packages/love-dj-jwt-auth/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

thinkphp-jwt-author
===================

[](#thinkphp-jwt-author)

为thinkPHP写的jwt认证组件

安装
--

[](#安装)

使用composer管理依赖方式安装

```
composer require love-dj/jwt-auth dev-main

```

环境要求
----

[](#环境要求)

php:&gt;=7.1 thinkphp:&gt;=6.0

配置
--

[](#配置)

```
    'secret' => 'rolling in the deep'//加密秘钥
    'use_limit' => 'rolling in the deep'//token过期时间
    'refresh_limit' => 'rolling in the deep'//token可以用时间，（可刷新）

```

使用案例
----

[](#使用案例)

```
