细节优化

This commit is contained in:
click33
2023-01-10 16:35:35 +08:00
parent 081b6a1b70
commit 9469251376
10 changed files with 42 additions and 16 deletions

View File

@@ -65,4 +65,12 @@ public class StpLogicJwtForSimple extends StpLogic {
return SaJwtUtil.getPayloadsNotCheck(tokenValue, loginType, jwtSecretKey()).get(key);
}
@Override
public boolean getConfigOfIsShare() {
// 为确保 jwt-simple 模式的 token Extra 数据生成不受旧token影响这里必须让 is-share 恒为 false
// 即:在使用 jwt-simple 模式后,即使配置了 is-share=true 也不能复用旧 Token必须每次创建新 Token
return false;
}
}