supaapps-auth 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ export declare class AuthManager {
3
3
  private readonly authServer;
4
4
  private readonly realmName;
5
5
  private readonly redirectUri;
6
- private constructor();
6
+ constructor(authServer: string, realmName: string, redirectUri: string);
7
7
  static getInstance<T>(): AuthManager;
8
8
  private toBase64Url;
9
9
  private generatePKCEPair;
@@ -37,6 +37,7 @@ class AuthManager {
37
37
  this.authServer = authServer;
38
38
  this.realmName = realmName;
39
39
  this.redirectUri = redirectUri;
40
+ AuthManager.instance = this;
40
41
  }
41
42
  static getInstance() {
42
43
  if (!AuthManager.instance) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supaapps-auth",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,10 +9,11 @@ export class AuthManager {
9
9
  private readonly realmName: string | null = null;
10
10
 
11
11
  private readonly redirectUri: string | null = null;
12
- private constructor(authServer: string, realmName: string, redirectUri: string) {
12
+ public constructor(authServer: string, realmName: string, redirectUri: string) {
13
13
  this.authServer = authServer;
14
14
  this.realmName = realmName;
15
15
  this.redirectUri = redirectUri;
16
+ AuthManager.instance = this;
16
17
  }
17
18
 
18
19
  public static getInstance<T>(): AuthManager{