Workshop - Fixed email not being detected as verified

Settings - Fixed new releases not loading when there are more than 20
This commit is contained in:
Robert committed 2023-09-20 22:55:37 +02:00
1 parent 3394786d31
commit fbf908c032
8 files changed
+24 -23

No files matched your search

@@ -266,6 +266,13 @@ internal class AuthenticationService : CorePropertyChanged, IAuthenticationServi
_isLoggedInSubject.OnNext(false);
}
/// <inheritdoc />
public bool GetIsEmailVerified()
{
Claim? emailVerified = Claims.FirstOrDefault(c => c.Type == JwtClaimTypes.EmailVerified);
return emailVerified?.Value.ToLower() == "true";
}
private async Task<bool> InternalAutoLogin(bool force = false)
{
if (!force && _isLoggedInSubject.Value)
@@ -14,4 +14,5 @@ public interface IAuthenticationService : IProtectedArtemisService
Task<bool> AutoLogin(bool force = false);
Task Login(CancellationToken cancellationToken);
void Logout();
bool GetIsEmailVerified();
}