Authors and editors can consult the Committee on Publication Ethics (COPE) resources on authorship and contibutorship: https://publicationethics.org/authorship. These include guidelines on how to handle authorship disputes and provide flowcharts to work through some scenarios related to authorship.