While white listing the URL - if the url is dynamic - consider for extension?

const idOfThisApplication = chrome.runtime.id;
    const sdk = new SocialLogin();
    const url : string = `chrome-extension://${idOfThisApplication}`;
    const signature1 = await sdk.whitelistUrl(
    await sdk.init({
        url: signature1,

In the above code I am trying to pass the extension id - but getting the error

could not validate redirect, please whitelist your domain