Hello,
I have no experience in Auth0 as you may guess in the post title.
My requirements required two custom fields in sign up form.
I’m using auth0-lock to add those fields luckily its working 2 custom fields is now visible on sign up form.
But I have encountered errors like Error: "Callback URL mismatch. The provided redirect_uri is not in the list of allowed callback URLs.
watching this error every time is so disappointing.
Note: I already added URL http://localhost:3000/home on dashboard but still getting this error.
By the way, I have checked my dashboard logs here the error.
Above screenshot “sign up form success” the rest are not unfortunately.
Here’s my code
import Auth0Lock from 'auth0-lock'
const options = {
additionalSignUpFields: [
{
name: 'fName',
placeholder: 'Enter your first name',
},
{
name: 'lastName',
placeholder: 'Enter your last name',
},
],
auth: {
responseType: 'token',
sso: false,
},
allowShowPassword: true,
allowedConnections: ['Username-Password-Authentication', 'google-oauth2'],
}
const lock = new Auth0Lock(auth0ClientId, auth0Domain, options)
const handleLogin = useCallback(() => {
lock.show()
}, [])
I’m literally scratching my head overnight because I can’t make it work.
Also, I’m using auth0-react together with auth0-lock which I’m not sure if need.
Any help?