def _extract_id_token(id_token):
 if (type(id_token) == bytes):
  segments = id_token.split('.')
 else:
  segments = id_token.split(u'.')
 if (len(segments) != 3):
  raise VerifyJwtTokenError('Wrong number of segments in token: {0}'.format(id_token))
 return json.loads(_helpers._from_bytes(_helpers._urlsafe_b64decode(segments[1])))

def _extract_id_token ( id_token ) : if ( type ( id_token ) == bytes ) : segments = id_token . split ( '.' ) else : segments = id_token . split ( u'.' ) if ( len ( segments ) != 3 ) : raise VerifyJwtTokenError ( 'Wrong number of segments in token: {0}' . format ( id_token ) ) return json . loads ( _helpers . _from_bytes ( _helpers . _urlsafe_b64decode ( segments [ 1 ] ) ) )
extract the json payload from a jwt .