How to listen to a value stored in Secure Storage in Flutter?

Viewed 915

Basically what I would like to achieve is kind of creating a Stream on a value saved in the Secure Storage. Currently I am storing the jsonwebtoken in the Secure Storage and I would like to logout the user or login (Show different screens) whenever the token is given or removed from the storage (The value changes from null to a String or String to null. Is there any way to achieve this?

0 Answers
Related