首页 > 解决方案 > Xamarin.Auth:Account.Create() 不安全

问题描述

我正在使用 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(),我确实使用了该方法。我需要担心这个消息吗?

标签: authenticationloginxamarin.auth

解决方案


现在推荐的操作是SecureStorage改用。

以下是如何进行迁移:
https ://github.com/xamarin/Xamarin.Auth/wiki/Migrating-from-AccountStore-to-Xamarin.Essentials-SecureStorage


推荐阅读