diff --git a/src/mysky/index.ts b/src/mysky/index.ts index d1411f69..05a5691f 100644 --- a/src/mysky/index.ts +++ b/src/mysky/index.ts @@ -150,6 +150,10 @@ export class MySky { protected hostDomain: string, protected currentPortalUrl: string ) { + if (MySky.instance) { + throw new Error("Trying to create a second MySky instance"); + } + this.pendingPermissions = permissions; }