This was a coming-of-age story.
It starts with the protagonist, a teenaged boy whose interests include TTRPGs like Dungeons and Dragons, going to an interview for a job. There he meets what turns out to be a creator deity who sends him to a magical world under the control of a group of sorcerers who owe allegiance to the creator deity's foe.
I remember it kind of as a footnote but two other teens from our world went missing and the protagonist discovers one, a jock has been killed and eaten by the wolves that live in the wooded area they are transported to, and a girl accidentally gets possessed by a demon but the protagonist cannot save her.
Relatively shortly into the story he finds himself witness to a battle and he saves prisoners from the attacking (evil) forces and when caught by their sorcerers accidentally ends up making a powerful magical bomb that breaks the siege by destroying most of the attacking forces. One of the prisoners becomes his traveling companion, a young boy.
The whole story is about him avoiding detection and increasing his magical knowledge until he eventually restores the worship of the "good deity" to the world and faces off with the "evil god" as it tries to enter and consume the world.
I read it around 2015, at my wife's recommendation but she read it years earlier. My impression is that it was published in either the 1990s or 2000's.