SignedString implementation of the Token interface. It returns a JWT using the compact serialization.
(sigAlg string, key interface{})
| 32 | // SignedString implementation of the Token interface. It returns a JWT using |
| 33 | // the compact serialization. |
| 34 | func (t *Token) SignedString(sigAlg string, key interface{}) (string, error) { |
| 35 | return t.claims.Sign(jose.SignatureAlgorithm(sigAlg), key) |
| 36 | } |