Skip to content

Commit 234d1b4

Browse files
committed
style: fix formatting for oxfmt
1 parent c6d6833 commit 234d1b4

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

src/auth/scopes.test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import { describe, it, expect } from 'vitest'
2-
import { ALL_SCOPES, SCOPE_TEMPLATES, REQUIRED_SCOPES, DEFAULT_TEMPLATE, MAX_SCOPES } from './scopes'
2+
import {
3+
ALL_SCOPES,
4+
SCOPE_TEMPLATES,
5+
REQUIRED_SCOPES,
6+
DEFAULT_TEMPLATE,
7+
MAX_SCOPES
8+
} from './scopes'
39

410
/**
511
* Scopes registered for the OAuth client.

src/auth/workers-oauth-utils.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,16 @@ function sanitizeHtml(unsafe: string): string {
194194
* Renders an approval dialog for OAuth authorization with scope selection
195195
*/
196196
export function renderApprovalDialog(request: Request, options: ApprovalDialogOptions): Response {
197-
const { client, state, csrfToken, setCookie, scopeTemplates, allScopes, defaultTemplate, maxScopes } =
198-
options
197+
const {
198+
client,
199+
state,
200+
csrfToken,
201+
setCookie,
202+
scopeTemplates,
203+
allScopes,
204+
defaultTemplate,
205+
maxScopes
206+
} = options
199207
const encodedState = btoa(JSON.stringify(state))
200208
const clientName = client?.clientName ? sanitizeHtml(client.clientName) : 'Unknown MCP Client'
201209

0 commit comments

Comments
 (0)