StpUtil添加setTokenValue方法

This commit is contained in:
shengzhang 2021-03-18 23:51:56 +08:00
parent 69ce298a8a
commit a122a8b083

View File

@ -36,6 +36,14 @@ public class StpUtil {
return stpLogic.getTokenName();
}
/**
* 在当前会话写入当前tokenValue
* @param tokenValue token值
*/
public static void setTokenValue(String tokenValue, int cookieTimeout){
stpLogic.setTokenValue(tokenValue, cookieTimeout);
}
/**
* 获取当前tokenValue
* @return 当前tokenValue