This article resolved the issue for me:
https://learn.microsoft.com/en-us/dotnet/maui/migration/secure-storage?view=net-maui-9.0