DEV Community

Discussion on: User Authentication + JWT Authorization With Flutter and Node

 
carminezacc profile image
Carmine Zaccagnino • Edited

You can fetch once when the app starts and then have an InheritedWidget or Provider above all of your widgets provide the JWT without having to fetch it from local storage every time.

Thread Thread
 
asiamov profile image
asiamov

Right, thought about doing that as well. Wasn’t sure because of security but I guess in memory (ie provider) is alright while secure storage at rest.