```ruby
class Auth0Controller < ApplicationController
<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> Add the shell for the code that will hand the success and failure of the callback
def callback
    user = User.find_or_create_by(uid: request.env['omniauth.auth']['userinfo'])

    user.name = request.env['omniauth.auth']['info']['name']
    user.save
    
    session[:userinfo] = user.userinfo

    redirect_to '/dashboard'
<<<<<<< HEAD
  end

  def failure
    @error_msg = request.params['message']
=======
  def callback
  end

  def failure
>>>>>>> Add the Auth0 callback handler
=======
  end

  def failure
    # show a failure page or redirect to an error page
    @error_msg = request.params['message']
>>>>>>> Add the shell for the code that will hand the success and failure of the callback
  end
end
```

Fix redirect route and change uid to user info
user
```ruby
class Auth0Controller < ApplicationController
def callback

    user = User.find_or_create_by(userinfo: request.env['omniauth.auth']['userinfo'])

    user.name = request.env['omniauth.auth']['info']['name']
    user.save

    session[:userinfo] = user.userinfo

    redirect_to '/'
  end

  def failure
    @error_msg = request.params['message']
  end
end
```
assistant