Skip to content

Commit f13a729

Browse files
committed
fix: 메인액터에서 link 메서드를 호출하도록 개선하여 해결
1 parent 53e9bd9 commit f13a729

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

DevLog/Infra/Service/SocialLogin/GoogleAuthenticationService.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,9 @@ final class GoogleAuthenticationService: AuthenticationService {
8282
try await GIDSignIn.sharedInstance.disconnect()
8383
}
8484

85+
@MainActor
8586
func link(uid: String, email: String) async throws {
86-
let topViewController = await MainActor.run {
87-
provider.topViewController()
88-
}
89-
guard let topViewController = topViewController else {
87+
guard let topViewController = provider.topViewController() else {
9088
throw UIError.notFoundTopViewController
9189
}
9290

0 commit comments

Comments
 (0)