feat: SaLoginParameter 支持配置 isShare

This commit is contained in:
click33
2025-03-02 01:25:14 +08:00
parent 16cf2db334
commit 3bc9e88645
5 changed files with 35 additions and 8 deletions

View File

@@ -265,7 +265,7 @@ public class StpLogicJwtForMixin extends StpLogic {
* @return /
*/
@Override
public boolean getConfigOfIsShare() {
public boolean isSupportShareToken() {
return false;
}

View File

@@ -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;