nl_tokens: @param uri { string } Provider URI or Web ID URI
pl_tokens: function preferredProviderFor ( uri ) { // First, determine if the uri is an OIDC provider return providerExists ( uri ) . <mask> ( providerUri => { if ( providerUri ) { return providerUri // the given uri's origin hosts an OIDC provider } // Given uri is not a provider (for example, a static Web ID profile URI) // Discover its preferred provider return discoverProviderFor ( uri ) } ) }