File tree Expand file tree Collapse file tree
FirebaseSwiftUI/FirebaseFacebookSwiftUI/Sources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import FirebaseAuthSwiftUI
55let kFacebookEmailScope = " email "
66let kFacebookProfileScope = " public_profile "
77let kDefaultFacebookScopes = [ kFacebookEmailScope, kFacebookProfileScope]
8- // TODO - need to think how to handle this
8+ // TODO: - need to think how to handle this
99let kFacebookProviderId = " facebook.com "
1010
1111public enum FacebookLoginType {
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ extension FacebookButtonView: View {
6969 public var body : some View {
7070 FacebookLoginButtonView (
7171 isLimitedLogin: $limitedLogin,
72- nonce : $shaNonce,
72+ shaNonce : $shaNonce,
7373 onLoginResult: { error in
7474 Task {
7575 if let error = error {
@@ -92,7 +92,7 @@ struct FacebookLoginButtonView: UIViewRepresentable {
9292 typealias UIViewType = FBLoginButton
9393
9494 @Binding var isLimitedLogin : Bool
95- @Binding var nonce : String
95+ @Binding var shaNonce : String
9696 var onLoginResult : ( Error ? ) -> Void
9797
9898 class Coordinator : NSObject , @preconcurrency LoginButtonDelegate {
@@ -106,7 +106,7 @@ struct FacebookLoginButtonView: UIViewRepresentable {
106106 loginButton. loginTracking = parent. isLimitedLogin ? . limited : . enabled
107107// loginButton.permissions = ["public_profile", "email"]
108108
109- loginButton. nonce = parent. nonce
109+ loginButton. nonce = parent. shaNonce
110110
111111 return true
112112 }
You can’t perform that action at this time.
0 commit comments