mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-10-21 02:57:23 +08:00
feat: SaLoginParameter 支持配置 isShare
This commit is contained in:
@@ -265,7 +265,7 @@ public class StpLogicJwtForMixin extends StpLogic {
|
||||
* @return /
|
||||
*/
|
||||
@Override
|
||||
public boolean getConfigOfIsShare() {
|
||||
public boolean isSupportShareToken() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -83,7 +83,7 @@ public class StpLogicJwtForSimple extends StpLogic {
|
||||
|
||||
|
||||
@Override
|
||||
public boolean getConfigOfIsShare() {
|
||||
public boolean isSupportShareToken() {
|
||||
// 为确保 jwt-simple 模式的 token Extra 数据生成不受旧token影响,这里必须让 is-share 恒为 false
|
||||
// 即:在使用 jwt-simple 模式后,即使配置了 is-share=true 也不能复用旧 Token,必须每次创建新 Token
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user