mogol / flutter_secure_storage

A Flutter plugin to store data in secure storage
https://pub.dartlang.org/packages/flutter_secure_storage
BSD 3-Clause "New" or "Revised" License
1.09k stars 340 forks source link

Fix async race condition bug in storage operations #717

Closed PROGrand closed 1 month ago

PROGrand commented 1 month ago

Description

Race condition on write and read.

Solution

Using of await is necessary when switching from expression body returning feature (=>) to async block body ({}).

juliansteenbakker commented 1 month ago

Thank you for your contribution!