Skip to content

Commit

Permalink
next auth error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Oct 24, 2024
1 parent 607e8ae commit 2ad5bad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const authOptions: NextAuthOptions = {
name: token.name,
role: token.role,
isActive: token.isActive,
location: token.location,
location: token.location || "수원",
profileImage: token.profileImage,
};
}
Expand Down Expand Up @@ -162,7 +162,7 @@ export const authOptions: NextAuthOptions = {
refresh_token: account.refresh_token,
expires_at: account.expires_at,
refresh_token_expires_in: account.refresh_token_expires_in,
location: account.location || user.location,
location: account.location || user.location || "수원",
},
},
);
Expand All @@ -177,7 +177,7 @@ export const authOptions: NextAuthOptions = {
profileImage: user.profileImage,
role: user.role,
isActive: user.isActive,
location: account.location || user.location,
location: account.location || user.location || "수원",
};

return newToken;
Expand Down
2 changes: 1 addition & 1 deletion pages/vote/attend/configuration.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Box } from "@chakra-ui/react";
import dayjs from "dayjs";
import { useSession } from "next-auth/react";
import { useRouter, useSearchParams } from "next/navigation";
import { useSession } from "next-auth/react";
import { useEffect, useRef, useState } from "react";
import { useRecoilState, useRecoilValue, useSetRecoilState } from "recoil";

Expand Down

0 comments on commit 2ad5bad

Please sign in to comment.