Skip to content

Conversation

@maxschwinghammer
Copy link
Collaborator

Summary

  • Clear user_preferences and FreshKeeperPrefs when deleting accounts
  • Use existing sign-out flow after account deletion to remove tokens and emit logout events

Testing

  • ./gradlew test (fails: /workspace/AndroidApp/app/keys.properties (No such file or directory))

https://chatgpt.com/codex/tasks/task_b_68a7156c46188327b939c8cb0e7128da

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves account deletion by ensuring complete data cleanup when users delete their accounts. The changes clear stored preferences and utilize the existing sign-out flow for proper token cleanup and event emission.

  • Clears both user_preferences and FreshKeeperPrefs shared preferences during account deletion
  • Replaces direct auth.signOut() call with existing signOut() method to leverage proper cleanup flow

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

.edit {
clear()
}

Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The preference clearing logic is duplicated for both shared preferences. Consider extracting this into a helper method that accepts the preference name as a parameter to reduce code duplication.

Suggested change
clearPreferences("user_preferences")
clearPreferences("FreshKeeperPrefs")

Copilot uses AI. Check for mistakes.
…ceImpl.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants