Skip to content

Commit

Permalink
Fix issue in auth0 example (vercel#32293)
Browse files Browse the repository at this point in the history
## 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`
  • Loading branch information
josharsh authored Dec 8, 2021
1 parent 6687b09 commit b54cbcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/auth0/pages/api/callback.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b54cbcc

Please sign in to comment.