😲[ERROR] The field \"RootMutation.login\" cannot be accessed without authentication. (ok)

https://github.com/wp-graphql/wp-graphql-jwt-authentication/issues/169

add_filter( 
  'graphql_require_authentication_allowed_fields', 
  function( $allowed ) {
	$allowed[] = 'login';
	return $allowed;
}, 10, 1 );

Last updated

Was this helpful?