Skip to content

Commit ee7715e

Browse files
authored
[#242] 애플 계정의 링크 끊기가 실패하는 이슈를 해결한다 (#244)
* fix: getAppleConfiguration()을 통해 애플 관련 키를 가져오도록 수정하여 해결 * feat: 에러가 날 수 있는 코드의 상단에 Logger 추가 * style: 인덴트 개선 * style: 에러 발생 시 Logger 뜨도록 추가
1 parent aa05696 commit ee7715e

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

DevLog/Infra/Service/SocialLogin/GoogleAuthenticationService.swift

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,17 @@ final class GoogleAuthenticationService: AuthenticationService {
119119
}
120120

121121
func unlink(_ uid: String) async throws {
122-
logger.info("Starting Google disconnect for unlink. uid: \(uid)")
123-
GIDSignIn.sharedInstance.signOut()
124-
try await GIDSignIn.sharedInstance.disconnect()
122+
do {
123+
logger.info("Starting Google disconnect for unlink. uid: \(uid)")
124+
GIDSignIn.sharedInstance.signOut()
125+
try await GIDSignIn.sharedInstance.disconnect()
125126

126-
logger.info("Starting Firebase Google provider unlink. uid: \(uid)")
127-
_ = try await user?.unlink(fromProvider: AuthProviderID.google.rawValue)
127+
logger.info("Starting Firebase Google provider unlink. uid: \(uid)")
128+
_ = try await user?.unlink(fromProvider: AuthProviderID.google.rawValue)
129+
} catch {
130+
logger.error("Failed to unlink Google account", error: error)
131+
throw error
132+
}
128133
}
129134

130135
}

0 commit comments

Comments
 (0)