An author is a person who writes a book, story, poem, or other written work. Their writing can be truth or fiction, short or long. Often, author is a word for a person whose job is to write. (A person whose job is writing is also called a writer.)
Sometimes, a person who creates something but is not a writer is called an author. Someone who writes music may be called the author of that piece of music, though we would usually call that person a composer. The French word for author, Auteur, is another name for the director of a movie.