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