Skip to content

Commit

Permalink
⚠️ Input alert wrapper color customization
Browse files Browse the repository at this point in the history
  • Loading branch information
benlmyers committed Feb 19, 2022
1 parent d075b7f commit 913da2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/EasyFirebase/Services/Auth/EasyAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,14 @@ public class EasyAuth: NSObject {
case apple = "Apple"
case google = "Google"
case email = "Email"

init(provider: String) {
switch provider {
case "apple.com": self = .apple
case "google.com": self = .google
default: self = .email
}
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions Sources/EasyFirebase/Services/Auth/EasyUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ public extension EasyUser {
guard assertAuthMatches() else { return }
if let authUser = authUser {
EasyAuth.emailVerified = authUser.isEmailVerified
let id = authUser.providerData.first?.providerID ?? ""
EasyAuth.accountProvider = EasyAuth.Provider(provider: id)
}
}

Expand Down

0 comments on commit 913da2f

Please sign in to comment.