Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 리팩토링
- locale data
- context api
- next-auth
- Github Actions
- interaction test
- Vanilla JavaScript
- 사탕게임
- useEffect
- suffixicon
- Flutter
- visual test
- React-hook-form
- 백준
- typescript
- storybook
- React.memo
- TextFormField
- useMemo
- 이메일 인증
- javascript
- 피보나치 함수
- custom hook
- kakao blind recruitment
- 프로그래머스
- Props Drilling
- ZOD
- Python
- react
- next.js
Archives
- Today
- Total
목록next-auth (1)
Dev Diary
next-auth signIn() Error Handling
문제점next-auth를 이용해 로그인을 구현하는데 아이디 혹은 비밀번호를 잘못 입력하는 경우 자꾸 내가 원하는 에러 핸들링 형태가 아닌 next-auth만의 Error 페이지가 출력되었다.내가 원하는 에러 핸들링"아이디 혹은 비밀번호가 일치하지 않습니다!" 라는 경고창을 띄우고 내가 만든 커스텀 /login 페이지에 머무르는것현재 에러 핸들링 형태아래와 같은 next-auth의 /api/auth/error 페이지가 출력됨.해결법 const onClickLoginRequest = async () => { const res = await signIn('credentials', { name: name, password: password, redirect: false, ..
Trouble Shooting
2023. 5. 20. 19:52