Skip to content

Commit 1b6bfa0

Browse files
LongOddCodeCopilot
andauthored
Update src/core/utils/openidHelper.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 780304a commit 1b6bfa0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/core/utils/openidHelper.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ export class OpenIdHelper {
1919
/**
2020
* Retrieve the authorization endpoint from the issuer
2121
*/
22-
async getAuthorizationEndpoint(): Promise<string> {
23-
const issuer = await this.discoverIssuer();
24-
if (!issuer.serverMetadata().authorization_endpoint) {
25-
throw new Error("Authorization endpoint not found in issuer metadata");
22+
throw new Error(`Authorization endpoint not found in issuer metadata for issuer URL: ${this.issuerUrl}`);
2623
}
2724
return issuer.serverMetadata().authorization_endpoint!;
2825
}

0 commit comments

Comments
 (0)