KeyID returns the kid stamped on issued tokens (empty when disabled).
()
| 63 | |
| 64 | // KeyID returns the kid stamped on issued tokens (empty when disabled). |
| 65 | func (s *Signer) KeyID() string { |
| 66 | if !s.Enabled() { |
| 67 | return "" |
| 68 | } |
| 69 | return s.kid |
| 70 | } |
| 71 | |
| 72 | // Sign issues an RS256 JWT carrying the given claims, with the kid in the |
| 73 | // header so verifiers can select the right JWKS entry. Returns |