Skip to content

Commit

Permalink
fix alg select
Browse files Browse the repository at this point in the history
  • Loading branch information
fb0sh committed Nov 11, 2024
1 parent 949ac52 commit 611af60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Jwt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ const select_alg = () => {
let k: string = selected_alg.value
signature_type.value = ""
signature_type.value = algs_map[k]
let h = JSON.parse(header.value)
if (h.alg) {
h.alg = k
header.value = JSON.stringify(h, null, 2)
}
}
Expand Down

0 comments on commit 611af60

Please sign in to comment.