The redirect URI provided is missing or does not match - Custom Social Connection

I have been given some details of adding social connection from a company.
Client Id, Client Secret, Authorize url , Token Url, Fetch user endpoint

Sync user profile is enabled too

I have created a simple custom connection and added these details.

Now we are using a single page application which is on Auth0 and i have enable this custom connection in that.

This is the config setup of my Auth app

const config: AuthOptions = {
domain: process.env.NEXT_PUBLIC_AUTH0_DOMAIN || ‘’,
clientID: process.env.NEXT_PUBLIC_AUTH0_CLIENTID || ‘’,
scope: 'openid profile email ’ + process.env.NEXT_PUBLIC_AUTH0_AUDIENCE || ‘’,
audience: process.env.NEXT_PUBLIC_AUTH0_AUDIENCE || ‘’,
responseType: ‘token id_token’
}

const auth0Instance = new auth0.WebAuth(config)

- Now i have added a Continue to Company button which calls

auth0Instance.authorize({
connection: ‘clientpoint-oauth’,
audience: process.env[‘NEXT_PUBLIC_AUTH0_AUDIENCE’] || ‘’,
redirectUri: window.location.origin + ‘/auth’
})

But this url
https://dev2.clientpoint.net/oauth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fauth-dev.clientpoint.me%2Flogin%2Fcallback&state=rEvxv41bm__xsuBmXNj6Q4-h_wS7qF_-&client_id=1760378d-f22d-462b-adfe-74hb5b51c9fc

throws an error everytime, even though i have added redirect uri in my auth0 application

image

I am stuck on this one

What I helped you?