import auth0 from '../../lib/auth0'

export default async function callback(req, res) {
  try {
    await auth0.handleCallback(req, res, { redirectTo: '/' })
  } catch (error) {
    console.error(error)
    res.status(error.status || 500).end(error.message)
  }
}

@@ -132,29 +132,8 @@
  res
-, %7B redirectTo: '/' %7D
 )%0A  

Fix issue in auth0 example (#32293)