Get the public key for a JWK.
(jwk *jose.JSONWebKey)
| 109 | |
| 110 | // Get the public key for a JWK. |
| 111 | func publicKey(jwk *jose.JSONWebKey) interface{} { |
| 112 | if jose.IsSymmetric(jwk) { |
| 113 | return jwk.Key |
| 114 | } |
| 115 | return jwk.Public().Key |
| 116 | } |
| 117 | |
| 118 | func verifyAction(ctx *cli.Context) error { |
| 119 | token, err := utils.ReadString(os.Stdin) |
no test coverage detected
searching dependent graphs…