Skip to content

Commit bdbba42

Browse files
committed
loading username on launch if any
1 parent 081be32 commit bdbba42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GoInfoGame/GoInfoGame/Login/SessionManager.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import Foundation
1010
//@MainActor
1111
final class SessionManager: ObservableObject {
1212
static let shared = SessionManager()
13-
private init() {}
13+
private init() {
14+
username = KeychainManager.load(.username, for: APIConfiguration.shared.environment)
15+
}
1416

1517
@Published var isLoginSuccessful: Bool = false
1618
@Published var hasLoginFailed: Bool = false

0 commit comments

Comments
 (0)