We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b6e9c7 commit 79b5e79Copy full SHA for 79b5e79
src/service.ts
@@ -15,6 +15,12 @@ export class KeycloakAdminService {
15
public client: AdminClient;
16
17
constructor(options: KeycloakAdminOptions) {
18
+ if (!options.config.baseUrl.startsWith('http')) {
19
+ throw new Error(
20
+ `Invalid base url. It should start with either http or https.`,
21
+ );
22
+ }
23
+
24
this.options = options;
25
this.client = new AdminClient(options.config);
26
this.resourceManager = new ResourceManager(this);
0 commit comments