title: Auth0 callback URL mismatch
body: <p>I am doing LinkedIn authentication with auth0 in a react app. I have set <code>localhost:3000/upload</code> in callback urls in settings, hopping that after users login at <code>localhost:3000/login</code>, they would be redirected to <code>localhost:3000/upload</code>. However, I always get this error: url <code>localhost:3000/login</code> is not in the list of callback urls. Why would auth0 expect to return to the page where you just logged in after logging in. Shouldn't it be some different url. It just does not make sense to me.</p>
  
  <p>Edit:</p>
  
  <pre><code>export default class AuthService {
    constructor(clientId, domain) {
      // Configure Auth0
      const options = {
        allowedConnections: ['linkedin'],
        auth: {
          params: {responseType: 'code'}
        }
      };  
      this.lock = new Auth0Lock(clientId, domain, options)
      // Add callback for lock `authenticated` event
      this.lock.on('authenticated', this._doAuthentication.bind(this))
      // binds login functions to keep this context
      this.login = this.login.bind(this)
      this.loggedIn = this.loggedIn.bind(this)
    }
  
    _doAuthentication(authResult){
      // Saves the user token
      console.log(authResult);
      this.setToken(authResult.idToken)
      this.lock.getProfile(authResult.idToken, (error, profile) =&gt; {
        if (error) {
          console.log('Error loading the Profile', error)
        } else {
          console.log(profile)
        }
      })
    }
  //....
  </code></pre>