We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 780304a commit 1b6bfa0Copy full SHA for 1b6bfa0
1 file changed
src/core/utils/openidHelper.ts
@@ -19,10 +19,7 @@ export class OpenIdHelper {
19
/**
20
* Retrieve the authorization endpoint from the issuer
21
*/
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");
+ throw new Error(`Authorization endpoint not found in issuer metadata for issuer URL: ${this.issuerUrl}`);
26
}
27
return issuer.serverMetadata().authorization_endpoint!;
28
0 commit comments