Get the public key for a JWK.
(jwk *jose.JSONWebKey)
| 81 | |
| 82 | // Get the public key for a JWK. |
| 83 | func publicKey(jwk *jose.JSONWebKey) interface{} { |
| 84 | if jose.IsSymmetric(jwk) { |
| 85 | return jwk.Key |
| 86 | } |
| 87 | return jwk.Public().Key |
| 88 | } |
| 89 | |
| 90 | func verifyAction(ctx *cli.Context) error { |
| 91 | token, err := utils.ReadString(os.Stdin) |
no test coverage detected
searching dependent graphs…