Skip to content

Commit

Permalink
Merge pull request #773 from PrudentBird/prudentbird
Browse files Browse the repository at this point in the history
chore: fix redirect url in auth config
  • Loading branch information
kleenpulse authored Jul 30, 2024
2 parents a5b31fd + fbcb127 commit 3799543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/auth.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ export default {
return { ...token, ...response };
},
async redirect({ url, baseUrl }) {
if (url === "/auth/login") {
if (url === "/login") {
return baseUrl;
}
return "/register/organisation";
},
},
pages: {
signIn: "/auth/login",
signIn: "/login",
},
trustHost: true,
} satisfies NextAuthConfig;

0 comments on commit 3799543

Please sign in to comment.