working sign up and sign in as far as I know
This commit is contained in:
@@ -13,7 +13,6 @@ export const authCheck = async (
|
||||
next: NextFunction
|
||||
) => {
|
||||
const { authorization } = req.headers;
|
||||
console.log(authorization);
|
||||
|
||||
try {
|
||||
const ticket = await client.verifyIdToken({
|
||||
@@ -28,8 +27,6 @@ export const authCheck = async (
|
||||
res.locals.userId = userId;
|
||||
res.locals.email = email;
|
||||
|
||||
console.log(userId);
|
||||
|
||||
next();
|
||||
} catch (error) {
|
||||
res.status(401).send("unauthorized");
|
||||
|
||||
Reference in New Issue
Block a user