Zewail
Zewail
新建refresh接口 解析传递过来的token后判断exp过期时间 并验证用户 通过后调用fromUser方法重新生成token返回就可以了 如果不做refresh过期时间判断,直接: ```php $user = JWT::authenticate(); return ApiResponse::array([ 'token' => JWT::fromUser($user) ]); ```
@osindex `token` 包含了过期时间和用户信息等资料,是否过期需要自己判断,只要拿到了`token`就可以解析出用户名信息
有测试过 header 头设置 `Access-Control-Allow-Headers` 加上 `Authorization` 值后的效果嘛
@qeq66 有尝试过在 `. htaccess ` 设置 `CGIPassAuth on` 吗 参考: https://httpd.apache.org/docs/2.4/en/mod/core.html#cgipassauth
@qeq66 `SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1` 可以实现吗
我们也碰到了这个问题,节点变更, 大量 current state RETRY 和 Exception: CONNECTION_LOSS
decorate a class method, do some parameter manipulation, such as injection, want to use a parameter decorator, sad for not supported now