Skip to content

Commit

Permalink
fix: check
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavan Soratur authored and Pavan Soratur committed Oct 19, 2024
1 parent 0139bbd commit 2db2276
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions actions/auth/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { loginSchema } from '@/schema/auth/schema';
import { signIn } from '@/auth';
import { AuthError } from 'next-auth';
import { isRedirectError } from 'next/dist/client/components/redirect';
import { DEFAULT_LOGGED_IN_REDIRECT } from '@/constants/routes';
// import { DEFAULT_LOGGED_IN_REDIRECT } from '@/constants/routes';

export async function login({
email,
Expand All @@ -28,7 +28,8 @@ export async function login({
await signIn('credentials', {
email,
password,
redirectTo: DEFAULT_LOGGED_IN_REDIRECT,
// redirectTo: DEFAULT_LOGGED_IN_REDIRECT,
redirect: false,
});

return {
Expand Down

0 comments on commit 2db2276

Please sign in to comment.