We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb2a3d commit 90bd8cdCopy full SHA for 90bd8cd
Projects/Feature/SplashFeature/Sources/SplashCore.swift
@@ -33,6 +33,8 @@ public struct SplashCore {
33
34
public init() { }
35
36
+ let deviceIDKey = "mohanyang_keychain_device_id"
37
+
38
@Dependency(APIClient.self) var apiClient
39
@Dependency(AuthService.self) var authService
40
@Dependency(DatabaseClient.self) var databaseClient
@@ -60,7 +62,7 @@ public struct SplashCore {
60
62
61
63
extension SplashCore {
64
private func checkDeviceIDExist() -> Effect<Action> {
- let deviceID = keychainClient.read(key: "mohanyang_keychain_device_id") ?? getDeviceUUID()
65
+ let deviceID = keychainClient.read(key: deviceIDKey) ?? getDeviceUUID()
66
return login(deviceID: deviceID)
67
}
68
0 commit comments