How to check auth token at entry point of flutter app
问题 I need to know how to check the token at entry point of app. I have already saved that in shared preference by ` _saveToken() async { SharedPreferences prefs = await SharedPreferences.getInstance(); String token = await response.data['token']; await prefs.setString('jwt', token); } ` and I need to bypass my login screen if this jwt is not null. How can I do this? 回答1: You can copy paste run full code below You can get jwt token in main() and check jwt content is null or not in initialRoute