diff --git a/src/Wt/Auth/OidcService.C b/src/Wt/Auth/OidcService.C index e9155d2..fb454aa 100644 --- a/src/Wt/Auth/OidcService.C +++ b/src/Wt/Auth/OidcService.C @@ -58,7 +58,7 @@ LOGGER("Auth.OidcService"); std::string id = claims.get("sub").orIfNull(""); // ifNull -> Invalid std::string name = claims.get("name").orIfNull(""); std::string email = claims.get("email").orIfNull(""); - bool emailVerified = claims.get("email_verified").orIfNull(false); + bool emailVerified = claims.get("email_verified").toBool().orIfNull(false); std::string providerName = this->service().name(); return Identity(providerName, id, name, email, emailVerified); }