redacted method
Creates a user safe to retain in events and audit records.
Implementation
AuthUser redacted() {
return AuthUser(
id: id,
email: email,
name: name,
image: image,
roles: roles,
isAnonymous: isAnonymous,
attributes: sanitizeAuthPublicAttributes(attributes),
);
}