question

dg2k avatar image
0 Votes"
dg2k asked dg2k edited

Can Sync Support to Maui SecureStorage be Added, Please?

I can see a plea to @JamesMontemagno for sync SecureStorage to be added from as far back as over 3 years ago (then under Xamarin.Essentials, now Microsoft.Maui.Storage namespace), for example as posted here. As someone commented in that plea, I also find it real pain for implementation when it comes to using the async SecureStorage.

This is the case because most usage of SecureStorage shows up in a constructor, for example, database initialization where the encryption key is obtained as await SecureStorage.GetAsync("ciptherKey"). Since an instance constructor cannot be async, the workaround at best is not elegant when a sync version like SecureStorage.Get("ciptherKey") could save the day.

Could @JamesMontemagno please please please reconsider the inclusion of sync SecureStorage getter and setter for Maui?



dotnet-maui
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JamesMontemagno avatar image
0 Votes"
JamesMontemagno answered dg2k edited

I would open an issue on the .NET MAUI GitHub with the feature request: https://github.com/dotnet/maui

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Opening an issue done as suggested, @JamesMontemagno.
Thank you for the quick response.


0 Votes 0 ·