Skip to content

Commit

Permalink
Fix: 백엔드 요구사항대로 소셜로그인엔 password는 null
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 2, 2023
1 parent 0d23b04 commit c82bb0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import NaverProvider from 'next-auth/providers/naver';
import KakaoProvider from 'next-auth/providers/kakao';
import CredentialsProvider from 'next-auth/providers/credentials';
import { credentialsLoginAPI } from '@/utils/api/accounts';
// import { credentialsLoginAPI } from '@/utils/api/clientServer';

interface CustomSession extends Session {
accessToken?: string;
Expand Down Expand Up @@ -83,6 +82,7 @@ export const authOptions: NextAuthOptions = {
body: JSON.stringify({
email: user.email,
provider: account?.provider,
password: null,
}),
});
const data = await response.json();
Expand Down

0 comments on commit c82bb0c

Please sign in to comment.