Skip to content

Commit 515c226

Browse files
chore: fmt
1 parent 46a534e commit 515c226

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,4 @@
8181
"oauth4webapi": "^3.1.4",
8282
"qs-esm": "7.0.2"
8383
}
84-
}
84+
}

script/build.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { Glob, $ } from "bun";
1+
import { Glob, $ } from "bun"
22

3-
await $`rm -rf dist`;
4-
const files = new Glob("./src/**/*.{ts,tsx}").scan();
3+
await $`rm -rf dist`
4+
const files = new Glob("./src/**/*.{ts,tsx}").scan()
55
for await (const file of files) {
66
await Bun.build({
77
format: "esm",
88
outdir: "dist/esm",
99
external: ["*"],
1010
root: "src",
1111
entrypoints: [file],
12-
});
12+
})
1313
}
14-
await $`tsc --outDir dist/types --declaration --emitDeclarationOnly --declarationMap`;
14+
await $`tsc --outDir dist/types --declaration --emitDeclarationOnly --declarationMap`

src/core/protocols/oauth/oauth2_callback.ts

+11-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,22 @@ export async function OAuth2Callback(
1919
throw new MissingOrInvalidSession()
2020
}
2121

22-
const { client_id, client_secret, authorization_server, profile, client_auth_type } =
23-
providerConfig
22+
const {
23+
client_id,
24+
client_secret,
25+
authorization_server,
26+
profile,
27+
client_auth_type,
28+
} = providerConfig
2429

2530
const client: oauth.Client = {
2631
client_id,
2732
}
2833

29-
const clientAuth = client_auth_type === "client_secret_basic" ? oauth.ClientSecretBasic(client_secret ?? "") : oauth.ClientSecretPost(client_secret ?? "");
34+
const clientAuth =
35+
client_auth_type === "client_secret_basic"
36+
? oauth.ClientSecretBasic(client_secret ?? "")
37+
: oauth.ClientSecretPost(client_secret ?? "")
3038

3139
const current_url = new URL(request.url as string) as URL
3240
const callback_url = getCallbackURL(

0 commit comments

Comments
 (0)