The journey client configuration (union of sync and async configs)
True if the config has a wellknown property in serverConfig
const config: JourneyConfigInput = {
serverConfig: {
baseUrl: 'https://am.example.com/am/',
wellknown: 'https://am.example.com/am/oauth2/realms/root/realms/alpha/.well-known/openid-configuration'
}
};
if (hasWellknownConfig(config)) {
// TypeScript now knows config is AsyncJourneyClientConfig
const wellknownUrl = config.serverConfig.wellknown;
}
Type guard to determine if the configuration includes well-known endpoint discovery.