remove logging
This commit is contained in:
@@ -105,12 +105,6 @@ export async function validateSdkRequest(req: NextApiRequest): Promise<string> {
|
||||
const clientId = req?.headers['mixan-client-id'] as string | undefined;
|
||||
const clientSecret = req.headers['mixan-client-secret'] as string | undefined;
|
||||
|
||||
console.log('clientId',clientId);
|
||||
console.log('clientSecret',clientSecret);
|
||||
console.log(JSON.stringify(req.headers, null, 2));
|
||||
|
||||
|
||||
|
||||
if (!clientId) {
|
||||
throw createError(401, 'Misisng client id');
|
||||
}
|
||||
|
||||
@@ -30,8 +30,6 @@ export function createIssues(arr: Array<MixanIssue>) {
|
||||
}
|
||||
|
||||
export function createError(status = 500, error: unknown) {
|
||||
console.log('create error', error);
|
||||
|
||||
if (error instanceof Error || typeof error === 'string') {
|
||||
return new HttpError(status, error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user