refactor: remove @calcom/features dependency to @calcom/web (#13365)
* refactor: remove @calcom/features dependency to @calcom/web * refactor: remove IS_VISUAL_REGRESSION_TESTING from web * fix: wrong imports --------- Co-authored-by: Omar López <[email protected]>
This commit is contained in:
1 parent
7058da70e6
commit
4417d649ea
24 files changed
+52
-36
No files matched your search
@@ -2,7 +2,7 @@ import jwt from "jsonwebtoken";
|
||||
import type { NextApiRequest } from "next";
|
||||
|
||||
import prisma from "@calcom/prisma";
|
||||
import type { OAuthTokenPayload } from "@calcom/web/pages/api/auth/oauth/token";
|
||||
import type { OAuthTokenPayload } from "@calcom/types/oauth";
|
||||
|
||||
export default async function isAuthorized(req: NextApiRequest, requiredScopes: string[] = []) {
|
||||
const token = req.headers.authorization?.split(" ")[1] || "";
|
||||
|
||||
Reference in new issue
Block a user