Skip to content

jwt: sign and verify, every algorithm a webview can do - #166

Merged
DianaSensei merged 2 commits into
mainfrom
claude/container-red-logs-debug-i3zngu
Sep 23, 2026
Merged

DianaSensei merged 2 commits into
mainfrom
claude/container-red-logs-debug-i3zngu

CHANGELOG: JWT verify and sign

6577cd1
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Sep 23, 2026 in 28s

Annotations

Check warning on line 295 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFd&open=AaDNRQT3WWqQjmi3SDFd&pullRequest=166

Check warning on line 147 in src/components/tools/jwt/jwtParts.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQYcWWqQjmi3SDFk&open=AaDNRQYcWWqQjmi3SDFk&pullRequest=166

Check warning on line 270 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFq&open=AaDNRQZYWWqQjmi3SDFq&pullRequest=166

Check warning on line 295 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFc&open=AaDNRQT3WWqQjmi3SDFc&pullRequest=166

Check warning on line 77 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFo&open=AaDNRQZYWWqQjmi3SDFo&pullRequest=166

Check warning on line 305 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Ambiguous spacing before next element code

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFt&open=AaDNRQZYWWqQjmi3SDFt&pullRequest=166

Check warning on line 92 in src/components/tools/jwt/jwtParts.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQYcWWqQjmi3SDFi&open=AaDNRQYcWWqQjmi3SDFi&pullRequest=166

Check warning on line 132 in src/components/tools/jwt/jwtParts.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQYcWWqQjmi3SDFj&open=AaDNRQYcWWqQjmi3SDFj&pullRequest=166

Check warning on line 321 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFu&open=AaDNRQZYWWqQjmi3SDFu&pullRequest=166

Check failure on line 437 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFf&open=AaDNRQT3WWqQjmi3SDFf&pullRequest=166

Check warning on line 169 in src/components/tools/jwt/jwtParts.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQYcWWqQjmi3SDFl&open=AaDNRQYcWWqQjmi3SDFl&pullRequest=166

Check warning on line 321 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFx&open=AaDNRQZYWWqQjmi3SDFx&pullRequest=166

Check warning on line 130 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `String#codePointAt()` over `String#charCodeAt()`.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFY&open=AaDNRQT3WWqQjmi3SDFY&pullRequest=166

Check warning on line 41 in src/components/tools/jwt/jwtParts.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQYcWWqQjmi3SDFg&open=AaDNRQYcWWqQjmi3SDFg&pullRequest=166

Check warning on line 178 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this code to not use nested template literals.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFZ&open=AaDNRQT3WWqQjmi3SDFZ&pullRequest=166

Check failure on line 82 in src/components/tools/jwt/jwtCrypto.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Call the test context's `skip()` instead of returning early.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQYmWWqQjmi3SDFm&open=AaDNRQYmWWqQjmi3SDFm&pullRequest=166

Check warning on line 116 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFX&open=AaDNRQT3WWqQjmi3SDFX&pullRequest=166

Check warning on line 89 in src/components/tools/jwt/jwtParts.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQYcWWqQjmi3SDFh&open=AaDNRQYcWWqQjmi3SDFh&pullRequest=166

Check warning on line 321 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFw&open=AaDNRQZYWWqQjmi3SDFw&pullRequest=166

Check warning on line 256 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFp&open=AaDNRQZYWWqQjmi3SDFp&pullRequest=166

Check warning on line 328 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFe&open=AaDNRQT3WWqQjmi3SDFe&pullRequest=166

Check failure on line 300 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFr&open=AaDNRQZYWWqQjmi3SDFr&pullRequest=166

Check failure on line 188 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFa&open=AaDNRQT3WWqQjmi3SDFa&pullRequest=166

Check warning on line 76 in src/components/tools/jwt/JwtDebugger.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQZYWWqQjmi3SDFn&open=AaDNRQZYWWqQjmi3SDFn&pullRequest=166

Check warning on line 191 in src/components/tools/jwt/jwtCrypto.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=DianaSensei_developer-desktop-utils&issues=AaDNRQT3WWqQjmi3SDFb&open=AaDNRQT3WWqQjmi3SDFb&pullRequest=166