Skip to content

Commit 572effd

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

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/core/utils/openidHelper.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ export class OpenIdHelper {
55
private clientId: string;
66

77
constructor(issuerUrl: string, clientId: string) {
8+
if (issuerUrl == null || issuerUrl === "") {
9+
throw new Error("issuerUrl must be a non-null, non-empty string");
10+
}
11+
if (clientId == null || clientId === "") {
12+
throw new Error("clientId must be a non-null, non-empty string");
13+
}
814
this.issuerUrl = new URL(issuerUrl);
915
this.clientId = clientId;
1016
}

0 commit comments

Comments
 (0)