Menu

Account deletion was clearing two cache keys the app had stopped writing, and the test that caught it reads source code
📰

Account deletion was clearing two cache keys the app had stopped writing, and the test that caught it reads source code

DEV Community: reactnative·Daniel Pertu·14 days ago
#iu0I5SbC
#devtoreactnative#devto#dev#munchable#list
Reading 0:00
15s threshold

Munchable scans a food label and tells you whether the product suits the gut conditions you manage. The conditions, the sensitivities and the scan history live on the device and never reach the server, which is the architecture the privacy notice describes at munchable.app/privacy : "The rules engine that turns an ingredient list into Good fit, Caution or Avoid runs on the device, so the verdict is produced locally and is never transmitted anywhere."

Keeping the data on the phone moves work rather than removing it. Deleting an account now has two halves, and only one of them is a transaction.

The server half

The account deletion route cancels the Stripe subscription, deletes the customer, then empties every table keyed to the user in one transaction, and finally deletes the identity itself.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.