fix nullpointer on cancellation of login
e62ebd2c
Michael Schmitz
committed
succeeded
2 changed files
NativeAuthenticationStateProvider.cs
/WPE.App.Authentication.Maui/Business/NativeAuthenticationStateProvider.cs-1+1
/WPE.App.Authentication.Maui/Business/NativeAuthenticationStateProvider.cs
Add comment 51 if (!(await SilentSignInCore()).User?.Identity?.IsAuthenticated ?? false)
Add comment 52 {
Add comment 53 var user = await SignInCore(loginType, emailOrVoucherCode);
Add comment 54 Minus   cachedUser = user;
Add comment 54 Plus   cachedUser = user ?? NoUser;
Add comment 55 }
Add comment 56 return new AuthenticationState(cachedUser);
Add comment 57 }
WPE.App.Authentication.Maui.csproj
/WPE.App.Authentication.Maui/WPE.App.Authentication.Maui.csproj-1+1
/WPE.App.Authentication.Maui/WPE.App.Authentication.Maui.csproj
Add comment 24 <PackageIcon>icon.png</PackageIcon>
Add comment 25 <PackageReadmeFile>ReadMe.md</PackageReadmeFile>
Add comment 26 <PackageTags>WPE;Workplace Experience;infsoft</PackageTags>
Add comment 27 Minus   <Version>0.3.5</Version>
Add comment 27 Plus   <Version>0.3.6</Version>
Add comment 28 <GenerateDocumentationFile>true</GenerateDocumentationFile>
Add comment 29 </PropertyGroup>
Add comment 30