Starting on working bookmarks api
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
import auth0 from "../../lib/auth0";
|
||||
import { withErrorHandling } from "../../lib/apiHelpers";
|
||||
|
||||
export default async function login(req, res) {
|
||||
try {
|
||||
await auth0.handleLogin(req, res);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
res.status(error.status || 500).end(error.message);
|
||||
}
|
||||
}
|
||||
export default login = withErrorHandling(async (req, res) => {
|
||||
await auth0.handleLogin(req, res);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user