Skip to content

Commit

Permalink
Feat: 로그인 에러페이지 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
rlarlduf20 committed Jan 22, 2024
1 parent 64b282e commit c3f2b68
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/app/(main)/signIn/error/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import SignButton from "@/components/SignButton";

const SignError = () => {
return (
<section>
<p>오류가 발생했습니다. 다시 로그인 해주세요.</p>
<SignButton />
</section>
);
};

export default SignError;
1 change: 1 addition & 0 deletions src/app/api/auth/[...nextauth]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const authOptions = {
],
pages: {
signIn: "/signIn",
error: "/signIn/error",
},
callbacks: {
async signIn({ user, account }: any) {
Expand Down
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ export default async function middleware(req: NextRequest) {
}

export const config = {
mathcher: [...withAuthList, ...withOutAuthList],
matcher: [...withAuthList, ...withOutAuthList],
};

0 comments on commit c3f2b68

Please sign in to comment.