jwt: add short/long options (#20943)

This commit is contained in:
Nelson Figueroa
2026-01-30 01:14:28 -08:00
committed by GitHub
parent 8364177551
commit e51c84edfe
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -10,12 +10,12 @@
- JWT를 JSON 문자열로 디코드:
`jwt decode -j {{jwt_문자열}}`
`jwt decode {{[-j|--json]}} {{jwt_문자열}}`
- JSON 문자열을 JWT로 인코드:
`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json_문자열}}'`
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} '{{json_문자열}}'`
- 키-값 쌍 페이로드를 JWT로 인코드:
`jwt encode --alg {{HS256}} --secret {{1234567890}} -P {{키=값}}`
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} {{[-P|--payload]}} {{키=값}}`
+3 -3
View File
@@ -10,12 +10,12 @@
- Decodifica um JWT em uma JSON string:
`jwt decode -j {{jwt_string}}`
`jwt decode {{[-j|--json]}} {{jwt_string}}`
- Codifica uma JSON string em um JWT:
`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json_string}}'`
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} '{{json_string}}'`
- Codifica dados (payload) de um par de chaves (key pair) em um JWT:
`jwt encode --alg {{HS256}} --secret {{1234567890}} -P {{chave=valor}}`
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} {{[-P|--payload]}} {{chave=valor}}`
+3 -3
View File
@@ -10,12 +10,12 @@
- 将 JWT 解码为 JSON 字符串:
`jwt decode -j {{jwt字符串}}`
`jwt decode {{[-j|--json]}} {{jwt字符串}}`
- 将 JSON 字符串编码为 JWT:
`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json字符串}}'`
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} '{{json字符串}}'`
- 将键值对载荷编码为 JWT
`jwt encode --alg {{HS256}} --secret {{1234567890}} -P {{键=值}}`
`jwt encode {{[-A|--alg]}} {{HS256}} {{[-S|--secret]}} {{1234567890}} {{[-P|--payload]}} {{键=值}}`