Skip to content

Commit

Permalink
First draft to upgrade to SpeziAccount 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Jul 24, 2024
1 parent 67981d0 commit 1dcddf9
Show file tree
Hide file tree
Showing 14 changed files with 545 additions and 727 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let package = Package(
.package(url: "https://github.com/StanfordSpezi/Spezi", from: "1.0.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziViews.git", from: "1.0.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziStorage", from: "1.0.0"),
.package(url: "https://github.com/StanfordSpezi/SpeziAccount", from: "1.2.2"),
.package(url: "https://github.com/StanfordSpezi/SpeziAccount", branch: "feature/account-service-singleton"),
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "10.13.0")
],
targets: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
import FirebaseAuth
import Foundation

// TODO: move whole folder

enum FirebaseAccountError: LocalizedError {

enum FirebaseAccountError: LocalizedError { // TODO: make public?
case invalidEmail
case accountAlreadyInUse
case weakPassword
Expand Down Expand Up @@ -93,7 +95,7 @@ enum FirebaseAccountError: LocalizedError {


init(authErrorCode: AuthErrorCode) {
FirebaseEmailPasswordAccountService.logger.debug("Received authError with code \(authErrorCode)")
FirebaseAccountConfiguration.logger.debug("Received authError with code \(authErrorCode)") // TODO: what?

switch authErrorCode.code {
case .invalidEmail, .invalidRecipientEmail:
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1dcddf9

Please sign in to comment.