Skip to content

Commit 44a4408

Browse files
committed
Code review comments
1 parent c0ebe90 commit 44a4408

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/client/auth.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ describe("OAuth Authorization", () => {
8484
describe("startAuthorization", () => {
8585
const validMetadata = {
8686
issuer: "https://auth.example.com",
87-
authorization_endpoint: "https://auth.example.com/authorize",
88-
token_endpoint: "https://auth.example.com/token",
87+
authorization_endpoint: "https://auth.example.com/auth",
88+
token_endpoint: "https://auth.example.com/tkn",
8989
response_types_supported: ["code"],
9090
code_challenge_methods_supported: ["S256"],
9191
};
@@ -131,7 +131,7 @@ describe("OAuth Authorization", () => {
131131
);
132132

133133
expect(authorizationUrl.toString()).toMatch(
134-
/^https:\/\/auth\.example\.com\/authorize\?/
134+
/^https:\/\/auth\.example\.com\/auth\?/
135135
);
136136
});
137137

src/client/auth.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -432,13 +432,6 @@ export async function refreshAuthorization(
432432

433433
/**
434434
* Performs OAuth 2.0 Dynamic Client Registration according to RFC 7591.
435-
*
436-
* @param serverUrl - The base URL of the authorization server
437-
* @param options - Registration options
438-
* @param options.metadata - OAuth server metadata containing the registration endpoint
439-
* @param options.clientMetadata - Client metadata for registration
440-
* @returns The registered client information
441-
* @throws Error if the server doesn't support dynamic registration or if registration fails
442435
*/
443436
export async function registerClient(
444437
serverUrl: string | URL,

0 commit comments

Comments
 (0)