简体   繁体   English

Flutter web 中的api 密钥存放在哪里?

[英]Where to store api keys in Flutter web?

Im currently working with Flutter web with a Php backend that is protected with an api Key.我目前正在使用 Flutter web 和 Php 后端,该后端受 api 密钥保护。 Where should I store the Api Key in Flutter Web?我应该将 Api 密钥存储在 Flutter Web 中的什么位置? the package "flutter_secure_storage" is not available for web so it is not an option. package“flutter_secure_storage”不适用于 web,因此它不是一个选项。

You can use the SharedPreferences plugin for storing and retrieving persistent simple data.您可以使用SharedPreferences插件来存储和检索持久性简单数据。 They supported for the web from version 0.5.4+7他们从 0.5.4+7 版本支持 web

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM