Open jrahma opened 2 years ago
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Hi @jrahma. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
The sample project is attached and contains the class library and the app that uses the class library.
From the class library I am setting:
await SecureStorage.SetAsync("TempMAUIAppUsingClass.FirstName", "Jassim");
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Description
MAUI allows you to create a Class Library / Nuget Package and it also allows you to create a Multiplatform app but what if you create a library that you want to use with the multiplatform app then you end up with no way to pass data between them!
Let's say you have an auth class library that you created in MAUI and you want to use it for sign in in your MAUI Multiplatdorm app then you want to save the user info such as email, first name, and last name in SecureStorage.. Due to different namespace this is currently not possible.
Public API Changes
SecureStorage.Set("MyApp.FirstName", "Jassim");
and:SecureStorage.Get("MyApp.FirstName");
the MyApp in the name is Optional
so from MyClassLibrary I can use this then it will save the SecureStorage value in MyApp.
Intended Use-Case
Many cases, one of them is authentication class library, or Nuget packages