diff --git a/examples/auth0/pages/api/callback.js b/examples/auth0/pages/api/callback.js index e06f9657d0d56..a1f9318dee344 100644 --- a/examples/auth0/pages/api/callback.js +++ b/examples/auth0/pages/api/callback.js @@ -2,7 +2,7 @@ import auth0 from '../../lib/auth0' export default async function callback(req, res) { try { - await auth0.handleCallback(req, res, { redirectTo: '/' }) + await auth0.handleCallback(req, res) } catch (error) { console.error(error) res.status(error.status || 500).end(error.message)