graphql_field_resolver_auth_error_message

Filter the auth error

apply_filters( 'graphql_field_resolver_auth_error_message', string $default_auth_error_message, GraphQL\Type\Definition\FieldDefinition $field );

Params

  • $default_auth_error_message (string): The default auth error message
  • $field (GraphQL\Type\Definition\FieldDefinition): The field definition