···11+pub mod roles;
12pub mod scopes;
2344+pub use roles::{
55+ CanAddControllers, CanControlAccounts, verify_can_add_controllers, verify_can_be_controller,
66+ verify_can_control_accounts,
77+};
38pub use scopes::{SCOPE_PRESETS, ScopePreset, intersect_scopes};
49pub use tranquil_db_traits::DelegationActionType;
···11+use crate::util::pds_hostname;
12use std::sync::OnceLock;
23use tranquil_db_traits::SsoProviderType;
34···5051 };
51525253 if config.is_any_enabled() {
5353- let hostname = std::env::var("PDS_HOSTNAME").unwrap_or_default();
5454+ let hostname = pds_hostname();
5455 if hostname.is_empty() || hostname == "localhost" {
5556 panic!(
5657 "PDS_HOSTNAME must be set to a valid hostname when SSO is enabled. \