parameters: (self)
docstring: The 'aud' claim must either be a string or a list of strings.
docstring_summary: The 'aud' claim must either be a string or a list of strings.
docstring_tokens: The aud claim must either be a string or a list of strings .
function: def _validate_audience_claim(self):
      """The 'aud' claim must either be a string or a list of strings."""
      if 'aud' in self._payload:
        audiences = self._payload['aud']
        if isinstance(audiences, str):
          return
        if not isinstance(audiences, list) or not audiences:
          raise _jwt_error.JwtInvalidError('audiences cannot be an empty list')
        if not all(isinstance(value, str) for value in audiences):
          raise _jwt_error.JwtInvalidError('audiences must only contain strings')
function_tokens: def _validate_audience_claim ( self ) : if 'aud' in self . _payload : audiences = self . _payload [ 'aud' ] if isinstance ( audiences , str ) : return if not isinstance ( audiences , list ) or not audiences : raise _jwt_error . JwtInvalidError ( 'audiences cannot be an empty list' ) if not all ( isinstance ( value , str ) for value in audiences ) : raise _jwt_error . JwtInvalidError ( 'audiences must only contain strings' )