However , Loki is a trickster god within Norse mythology .