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

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

machengjun/jwt-auth
===================

JSON Web Token Authentication for thinkphp

218HTML

Since Jan 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/machengjun/thinkphp-jwt-author)[ Packagist](https://packagist.org/packages/machengjun/jwt-auth)[ RSS](/packages/machengjun-jwt-auth/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#thinkphp-jwt-author)

为thinkPHP写的jwt认证组件

安装
--

[](#安装)

使用composer管理依赖方式安装

```
composer require machengjun/jwt-auth

```

环境要求
----

[](#环境要求)

php:&gt;=5.4 thinkphp:&gt;=5.0

配置
--

[](#配置)

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

```

使用案例
----

[](#使用案例)

```
