nl_tokens: Validates a preferred provider uri ( makes sure it s a well - formed URI ) .
pl_tokens: function validateProviderUri ( provider , webId ) { if ( ! provider ) { let <mask> = new Error ( ` ${ webId } ` ) error . statusCode = 400 throw error } if ( ! validUrl . isUri ( provider ) ) { let error = new Error ( ` ${ webId } ${ provider } ` ) error . statusCode = 400 throw error } }