Xamarin.Auth:Account.Create()不安全

时间:2019-05-09 23:07:31

标签: authentication login xamarin.auth

我正在使用Xamarin.Auth.XamarinForms保存用户名和密码,因此用户无需担心记住密码。

我收到一个错误:

   This version is insecure, because of default password.
Please use version with supplied password for AccountStore:
    AccountStore.Create(Contex, string);
or
    AccountStore.Create(string);

Using:
    AccountStore.Create(Contex);
or
    AccountStore.Create();

在库中,只有Create(),而我确实使用了该方法。我需要担心该消息吗?

1 个答案:

答案 0 :(得分:0)

目前建议的操作是改用SecureStorage

这里是进行迁移的方法:
https://github.com/xamarin/Xamarin.Auth/wiki/Migrating-from-AccountStore-to-Xamarin.Essentials-SecureStorage