code: def make_signed_token(self, key):
          
  
          t = JWS(self.claims)
          t.add_signature(key, protected=self.header)
          self.token = t
docs: Signs the payload.
  
          Creates a JWS token with the header as the JWS protected header and
          the claims as the payload. See (:class:`jwcrypto.jws.JWS`) for
          details on the exceptions that may be reaised.
  
          :param key: A (:class:`jwcrypto.jwk.JWK`) key.