We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e101ea commit 6ca1a59Copy full SHA for 6ca1a59
src/main/java/org/sonarsource/sonarqube/mcp/authentication/SessionTokenStore.java
@@ -80,12 +80,11 @@ public static SessionTokenStore getInstance() {
80
* For existing sessions, validates that the token matches and refreshes the TTL.
81
*/
82
public boolean setTokenIfValid(String sessionId, String token) {
83
- var newEntry = new SessionEntry(token, Instant.now());
84
var result = new AtomicBoolean(true);
85
sessionTokens.compute(sessionId, (key, existing) -> {
86
if (existing == null) {
87
// New session - store the entry
88
- return newEntry;
+ return new SessionEntry(token, Instant.now());
89
}
90
// Existing session - validate token matches
91
if (existing.token().equals(token)) {
0 commit comments