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

connection: ‘clientpoint-oauth’,
audience: process.env[‘NEXT_PUBLIC_AUTH0_AUDIENCE’] || ‘’,
redirectUri: window.location.origin + ‘/auth’

But this url

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


I am stuck on this one

What I helped you?