Auth0 working!
This commit is contained in:
10
web/pages/api/callback.js
Normal file
10
web/pages/api/callback.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import auth0 from "../../lib/auth0";
|
||||
|
||||
export default async function callback(req, res) {
|
||||
try {
|
||||
await auth0.handleCallback(req, res);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
res.status(error.status || 500).end(error.message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user