Skip to content

Commit

Permalink
firebase 설정을 release 스킴에만 동작하게 하면서 발생한 오류 수정 (파베 auth 오류 수정)
Browse files Browse the repository at this point in the history
  • Loading branch information
87kangsw committed May 15, 2024
1 parent 327d414 commit 77abcf2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GitTime/Sources/Services/AuthService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ final class AuthService: AuthServiceType {

let credential = GitHubAuthProvider.credential(withToken: accessToken.accessToken)

#if DEBUG
observer.onNext(accessToken)
observer.onCompleted()
#else
Auth.auth().signIn(with: credential) { (authResult, error) in
if let error = error {
log.error(error)
Expand All @@ -111,6 +115,7 @@ final class AuthService: AuthServiceType {
observer.onCompleted()
}
}
#endif

return Disposables.create {

Expand Down

0 comments on commit 77abcf2

Please sign in to comment.