Skip to content

Commit a9950e6

Browse files
authored
Merge pull request #68 from Central-MakeUs/feature/MODY-278
[MODY-278] FCM 토큰 저장값 삭제 로직 추가
2 parents a3197d6 + 6fc5d57 commit a9950e6

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Projects/Core/CoreAuth/Sources/Data/Repository/AuthRepository+KeyChain.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,8 @@ extension AuthRepository {
8686
try? keyChainStorage.delete(key: $0.rawValue)
8787
}
8888
}
89+
90+
func deleteFCMTokenFromKeyChain() throws {
91+
try? keyChainStorage.delete(key: KeyChainStorageKey.fcmToken.rawValue)
92+
}
8993
}

Projects/Core/CoreAuth/Sources/Data/Repository/AuthRepository.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ public struct AuthRepository: AuthRepositoryProtocol {
5050

5151
try await authService.postLogout(refreshToken: refreshToken)
5252
try deleteAuthSessionInfoFromKeyChain()
53+
try deleteFCMTokenFromKeyChain()
5354
}
5455

5556
public func deleteAccount() async throws {
5657
try await authService.deleteAccount()
5758
try deleteAuthSessionInfoFromKeyChain()
59+
try deleteFCMTokenFromKeyChain()
5860
}
5961
}

0 commit comments

Comments
 (0)