Skip to content

Commit 90bd8cd

Browse files
committed
fix: device ID 상수로
1 parent dfb2a3d commit 90bd8cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Projects/Feature/SplashFeature/Sources/SplashCore.swift

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ public struct SplashCore {
3333

3434
public init() { }
3535

36+
let deviceIDKey = "mohanyang_keychain_device_id"
37+
3638
@Dependency(APIClient.self) var apiClient
3739
@Dependency(AuthService.self) var authService
3840
@Dependency(DatabaseClient.self) var databaseClient
@@ -60,7 +62,7 @@ public struct SplashCore {
6062

6163
extension SplashCore {
6264
private func checkDeviceIDExist() -> Effect<Action> {
63-
let deviceID = keychainClient.read(key: "mohanyang_keychain_device_id") ?? getDeviceUUID()
65+
let deviceID = keychainClient.read(key: deviceIDKey) ?? getDeviceUUID()
6466
return login(deviceID: deviceID)
6567
}
6668

0 commit comments

Comments
 (0)