Skip to content

Commit df79d27

Browse files
committed
[Auth] Lock down property visibility for SetAccountInfoRequest
1 parent 054ab16 commit df79d27

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

FirebaseAuth/Sources/Swift/Backend/RPC/SetAccountInfoRequest.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -89,47 +89,47 @@ class SetAccountInfoRequest: IdentityToolkitRequest, AuthRPCRequest {
8989
var displayName: String?
9090

9191
/// The local ID of the user.
92-
var localID: String?
92+
private let localID: String? = nil
9393

9494
/// The email of the user.
95-
var email: String?
95+
var email: String? = nil
9696

9797
/// The photoURL of the user.
9898
var photoURL: URL?
9999

100100
/// The new password of the user.
101-
var password: String?
101+
var password: String? = nil
102102

103103
/// The associated identity providers of the user.
104-
var providers: [String]?
104+
private let providers: [String]? = nil
105105

106106
/// The out-of-band code of the change email request.
107107
var oobCode: String?
108108

109109
/// Whether to mark the email as verified or not.
110-
var emailVerified: Bool = false
110+
private let emailVerified: Bool = false
111111

112112
/// Whether to mark the user to upgrade to federated login.
113-
var upgradeToFederatedLogin: Bool = false
113+
private let upgradeToFederatedLogin: Bool = false
114114

115115
/// The captcha challenge.
116-
var captchaChallenge: String?
116+
private let captchaChallenge: String? = nil
117117

118118
/// Response to the captcha.
119-
var captchaResponse: String?
119+
private let captchaResponse: String? = nil
120120

121121
/// The list of user attributes to delete.
122122
///
123123
/// Every element of the list must be one of the predefined constant starts with
124124
/// `SetAccountInfoUserAttribute`.
125-
var deleteAttributes: [String]?
125+
private let deleteAttributes: [String]? = nil
126126

127127
/// The list of identity providers to delete.
128128
var deleteProviders: [String]?
129129

130130
/// Whether the response should return access token and refresh token directly.
131131
/// The default value is `true` .
132-
var returnSecureToken: Bool = true
132+
private let returnSecureToken: Bool = true
133133

134134
init(requestConfiguration: AuthRequestConfiguration) {
135135
super.init(endpoint: kSetAccountInfoEndpoint, requestConfiguration: requestConfiguration)

0 commit comments

Comments
 (0)