Skip to content

Commit a0f6f65

Browse files
fixes issues with classic endpoint authentication
1 parent b1cb3bd commit a0f6f65

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/apis/apiGroup/apiGroup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ const pollForResponse = async (config: OpenbloxConfig, url: string, operationPat
9999
const headers = { "x-api-key": cloudKey }
100100

101101
let response: any
102-
await pollHttp<{ done?: boolean }>({ method: "GET", url: operationUrl, headers }, async (polledResponse, stopPolling) => {
103-
if (!polledResponse.body.done) return
102+
await pollHttp.call(config, { method: "GET", url: operationUrl, headers }, async (polledResponse, stopPolling) => {
103+
if (!(polledResponse.body as { done?: boolean }).done) return
104104
response = polledResponse
105105
stopPolling()
106106
})

src/config/config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,5 @@ export const createOpenbloxConfig = (newConfig: OpenbloxConfig<RobloxCookie>) =>
6161
const newConfigCookie = newConfig?.cookie
6262
if (newConfigCookie) newConfig.cookie = formatRobloxCookie(newConfigCookie) as any
6363

64-
console.log("-->", newConfig)
65-
6664
return newConfig as OpenbloxConfig & { _phantom_isValid: true }
6765
}

src/http/httpHandler/httpHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const importPublicKey = async (key: string) => await crypto.subtle.importKey(
6262
)
6363

6464

65-
const createHbaKeys = async () => {
65+
/*const createHbaKeys = async () => {
6666
const keyPair = await crypto.subtle.generateKey({ name: "ECDSA", namedCurve: "P-256" }, true, ["sign"])
6767
return {
6868
private: await exportPrivateKey(keyPair.privateKey),
@@ -72,7 +72,7 @@ const createHbaKeys = async () => {
7272
7373
const importHbaKeys = async (keys: { private: string, public: string }): Promise<CryptoKeyPair> => {
7474
return { privateKey: await importPrivateKey(keys.private), publicKey: await importPublicKey(keys.public) }
75-
}
75+
}*/
7676
//////////////////////////////////////////////////////////////////////////////////
7777

7878

0 commit comments

Comments
 (0)