From 5268450353fe5b9b399b4c43860d4f406fed1316 Mon Sep 17 00:00:00 2001 From: Pauline Date: Wed, 9 Oct 2024 00:38:56 +0800 Subject: [PATCH] Fix lint errors --- cypress.json | 2 +- pages/api/consent.ts | 4 ++-- pkg/sdk/index.ts | 6 +----- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/cypress.json b/cypress.json index 00989e0..91aab53 100644 --- a/cypress.json +++ b/cypress.json @@ -1,3 +1,3 @@ { - "baseUrl": "http://localhost:3000/kratos-ui" + "baseUrl": "http://localhost:3000/kratos-ui" } diff --git a/pages/api/consent.ts b/pages/api/consent.ts index 925afb5..13c6ad7 100644 --- a/pages/api/consent.ts +++ b/pages/api/consent.ts @@ -1,7 +1,7 @@ +import axios from "axios" import { NextApiRequest, NextApiResponse } from "next" -import axios from "axios" // Using axios for HTTP requests -const baseURL = process.env.HYDRA_ADMIN_URL +const baseURL = process.env.HYDRA_ADMIN_URL // Helper function to extract session data const extractSession = (identity: any, grantScope: string[]) => { diff --git a/pkg/sdk/index.ts b/pkg/sdk/index.ts index 365dd10..1436b0b 100644 --- a/pkg/sdk/index.ts +++ b/pkg/sdk/index.ts @@ -8,8 +8,4 @@ const localConfig = { }, } -export default new FrontendApi( - new Configuration( - localConfig, - ), -) +export default new FrontendApi(new Configuration(localConfig))