jwt-auth icon indicating copy to clipboard operation
jwt-auth copied to clipboard

JSON Web Token Authentication for Thinkphp

Results 8 jwt-auth issues
Sort by recently updated
recently updated
newest added

我看composer里面还require了一个代码一样的..... ``` { "name": "thans/tp-jwt-auth", "description": "thinkphp jwt auth composer", "type": "library", "require": { "php": "^7.0 || ^8.0", "qeq66/jwt": "3.3.*", "topthink/framework": "^5.1.10 || ^6.0.0" }, "license": "MIT", "authors": [ {...

源码有getToken方法,没有token()方法 `public function getToken() { if ($this->token === null) { try { $this->parseToken(); } catch (JWTException $e) { $this->token = null; } } return $this->token; }`

$tokenStr = JWTAuth::token()->get(); Call to a member function get() on null

自定义token过期时间不生效问题 ,之前config中的过期时间会覆盖自定义时间。自定义过期时间:$token = JWTAuth::builder(['uid' => 1,'exp'=>$time]);

thinkphp 8下由于facade中‘thans\jwt\JWTAuth’引起的,望修复.......

![Image](https://github.com/user-attachments/assets/97c3f1e1-07da-4845-8d0d-c8c74c452632)

已经弃更了吗?