Browse Source

Merge branch 'master' of lidongy/finekit into master

master
richie 5 years ago committed by Gogs
parent
commit
1d6f565a7b
  1. 7
      src/main/java/com/fanruan/api/decision/login/LoginKit.java

7
src/main/java/com/fanruan/api/decision/login/LoginKit.java

@ -88,7 +88,6 @@ public class LoginKit {
* @param oldJwt 老的token
* @param socketIOClient socket客户端
* @param tokenTimeout 设置的超时时长仅对非保持登录有用0<= tokenTimeOut <= LoginConfig.LoginTimeOut
* @return 新的token
* @throws Exception 异常
*/
public static void refreshToken(String oldJwt, long tokenTimeout, SocketIOClient socketIOClient) throws Exception {
@ -96,14 +95,12 @@ public class LoginKit {
}
/**
* 刷新用户名对应的token输出response
* 刷新用户名对应的token将响应利用web工具封装至res
*
* @param oldJwt 老的token
* @param socketIOClient socket客户端
* @param tokenTimeout 设置的超时时长仅对非保持登录有用0<= tokenTimeOut <= LoginConfig.LoginTimeOut
* @param res HttpServletResponse
*
* @return 新的token
* @param res 刷新后得到的响应会封装至此HttpServletResponse中
* @throws Exception 异常
*/
public static void refreshTokenAndWriteResponse(String oldJwt, long tokenTimeout, SocketIOClient socketIOClient, HttpServletResponse res) throws Exception {

Loading…
Cancel
Save