Skip to content

Commit 8df9724

Browse files
committed
[Auth] Update SecureTokenRequest to have only immutable properties
1 parent 283a141 commit 8df9724

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ class SecureTokenRequest: AuthRPCRequest {
6464

6565
/// The type of grant requested.
6666
/// See FIRSecureTokenRequestGrantType
67-
var grantType: SecureTokenRequestGrantType
67+
let grantType: SecureTokenRequestGrantType
6868

6969
/// The scopes requested (a comma-delimited list of scope strings).
70-
var scope: String?
70+
let scope: String?
7171

7272
/// The client's refresh token.
73-
var refreshToken: String?
73+
let refreshToken: String?
7474

7575
/// The client's authorization code (legacy Gitkit "ID Token").
76-
var code: String?
76+
let code: String?
7777

7878
/// The client's API Key.
7979
let apiKey: String
@@ -107,8 +107,8 @@ class SecureTokenRequest: AuthRPCRequest {
107107
)
108108
}
109109

110-
init(grantType: SecureTokenRequestGrantType, scope: String?, refreshToken: String?,
111-
code: String?, requestConfiguration: AuthRequestConfiguration) {
110+
private init(grantType: SecureTokenRequestGrantType, scope: String?, refreshToken: String?,
111+
code: String?, requestConfiguration: AuthRequestConfiguration) {
112112
self.grantType = grantType
113113
self.scope = scope
114114
self.refreshToken = refreshToken

0 commit comments

Comments
 (0)