Troubleshoot email confirmation issues

Investigate and address problems related to users not receiving email confirmation messages.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 16:30:05 +00:00
parent 110f01f4ff
commit 2eb9dbfe64
3 changed files with 98 additions and 6 deletions

View File

@@ -31,6 +31,9 @@ export const signUp = async (email: string, password: string, username: string)
// 기본 회원가입 시도
try {
// 디버깅용 로그
console.log('Supabase 회원가입 요청 시작 - 이메일:', email, '사용자명:', username);
const { data, error } = await supabase.auth.signUp({
email,
password,
@@ -42,6 +45,8 @@ export const signUp = async (email: string, password: string, username: string)
}
});
console.log('Supabase 회원가입 응답:', { data, error });
if (error) {
console.error('회원가입 오류:', error);
@@ -88,7 +93,10 @@ export const signUp = async (email: string, password: string, username: string)
!data.user.identities[0].identity_data?.email_verified;
if (isEmailConfirmationRequired) {
showAuthToast('회원가입 성공', '이메일 인증을 완료해주세요. 인증 메일이 발송되었습니다.', 'default');
// 인증 메일 전송 성공 메시지와 이메일 확인 안내
showAuthToast('회원가입 성공', '인증 메일이 발송되었습니다. 스팸 폴더도 확인해주세요.', 'default');
console.log('인증 메일 발송됨:', email);
return {
error: null,
user: data.user,