Unverified Commit b54cbcca authored by Harsh Joshi's avatar Harsh Joshi Committed by GitHub

Fix issue in auth0 example (#32293)



## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`
parent 6687b090
...@@ -2,7 +2,7 @@ import auth0 from '../../lib/auth0' ...@@ -2,7 +2,7 @@ import auth0 from '../../lib/auth0'
export default async function callback(req, res) { export default async function callback(req, res) {
try { try {
await auth0.handleCallback(req, res, { redirectTo: '/' }) await auth0.handleCallback(req, res)
} catch (error) { } catch (error) {
console.error(error) console.error(error)
res.status(error.status || 500).end(error.message) res.status(error.status || 500).end(error.message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment