Skip to content

Commit 1cd7b03

Browse files
auto: format code
1 parent e5f2fc7 commit 1cd7b03

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ import { createClient } from "@openauthjs/openauth/client"
223223

224224
const client = createClient({
225225
clientID: "my-client",
226-
issuer: "https://auth.myserver.com" // url to the OpenAuth server
226+
issuer: "https://auth.myserver.com", // url to the OpenAuth server
227227
})
228228
```
229229
@@ -279,7 +279,7 @@ const challenge = JSON.parse(localStorage.getItem("challenge"))
279279
const exchanged = await client.exchange(
280280
query.get("code"),
281281
redirect_uri,
282-
challenge.verifier
282+
challenge.verifier,
283283
)
284284
if (exchanged.err) throw new Error("Invalid code")
285285
localStorage.setItem("access_token", exchanged.tokens.access)
@@ -293,7 +293,7 @@ const accessToken = localStorage.getItem("access_token")
293293
fetch("https://auth.example.com/api/user", {
294294
headers: {
295295
Authorization: `Bearer ${accessToken}`,
296-
}
296+
},
297297
})
298298
```
299299

www/generate.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -467,16 +467,16 @@ function renderComment(declaration: TypeDoc.Reflection) {
467467

468468
return [
469469
declaration instanceof TypeDoc.DeclarationReflection &&
470-
declaration.defaultValue
470+
declaration.defaultValue
471471
? [
472-
``,
473-
`<InlineSection>`,
474-
`**Default** ${renderType({
475-
type: "literal",
476-
value: declaration.defaultValue.replace(/"/g, ""),
477-
} as TypeDoc.LiteralType)}`,
478-
`</InlineSection>`,
479-
]
472+
``,
473+
`<InlineSection>`,
474+
`**Default** ${renderType({
475+
type: "literal",
476+
value: declaration.defaultValue.replace(/"/g, ""),
477+
} as TypeDoc.LiteralType)}`,
478+
`</InlineSection>`,
479+
]
480480
: [],
481481
declaration.comment.blockTags
482482
.filter((tag) => tag.tag === "@default")

0 commit comments

Comments
 (0)