-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- next auth 설정 - Header 로그인 버튼 -> 로그인 페이지 ref #36
- Loading branch information
Showing
4 changed files
with
70 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* This contains the dynamic route handler for NextAuth.js which will also contain all of your global NextAuth.js configurations. | ||
https://next-auth.js.org/getting-started/example#add-api-route | ||
*/ | ||
import NextAuth from 'next-auth'; | ||
import Kakao from 'next-auth/providers/kakao'; | ||
|
||
export default NextAuth({ | ||
providers: [ | ||
Kakao({ | ||
clientId: process.env.KAKAO_ID || '', | ||
clientSecret: process.env.KAKAO_SECRET || '', | ||
}), | ||
], | ||
secret: process.env.NEXTAUTH_SECRET, | ||
pages: { | ||
signIn: '/login', | ||
signOut: '/login', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters