code: def encode_id_token(payload, client):
      
      keys = get_client_alg_keys(client)
      _jws = JWS(payload, alg=client.jwt_alg)
      return _jws.sign_compact(keys)
docs: Represent the ID Token as a JSON Web Token (JWT).
      Return a hash.