next-auth-heksso 1.1.4 → 1.1.6

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.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "contact@voakie.com"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "1.1.4",
8
+ "version": "1.1.6",
9
9
  "scripts": {
10
10
  "prepublish": "rm api/ -r && rm react/ -r && tsc",
11
11
  "build": "tsc",
@@ -78,14 +78,15 @@ exports.KeycloakSessionProvider = KeycloakSessionProvider;
78
78
  class _KeycloakSessionProvider extends react_2.Component {
79
79
  constructor(props) {
80
80
  super(props);
81
- this.contextValue = {
82
- getAccessToken: this.getAccessToken,
83
- accessTokenError: false
84
- };
85
81
  this.state = {
86
82
  accessTokenError: false
87
83
  };
88
84
  this.getAccessToken = this.getAccessToken.bind(this);
85
+ this.getContextValue = this.getContextValue.bind(this);
86
+ this.contextValue = {
87
+ getAccessToken: this.getAccessToken,
88
+ accessTokenError: false
89
+ };
89
90
  }
90
91
  getContextValue() {
91
92
  if (this.state.accessTokenError !== this.contextValue.accessTokenError) {
@@ -72,6 +72,8 @@ class _KeycloakSessionProvider extends Component<
72
72
  PropsWithChildren<KeycloakSessionProviderProps>,
73
73
  KeycloakSessionProviderState
74
74
  > {
75
+ private contextValue
76
+
75
77
  constructor(props: KeycloakSessionProviderProps) {
76
78
  super(props)
77
79
 
@@ -80,11 +82,12 @@ class _KeycloakSessionProvider extends Component<
80
82
  }
81
83
 
82
84
  this.getAccessToken = this.getAccessToken.bind(this)
83
- }
85
+ this.getContextValue = this.getContextValue.bind(this)
84
86
 
85
- private contextValue = {
86
- getAccessToken: this.getAccessToken,
87
- accessTokenError: false
87
+ this.contextValue = {
88
+ getAccessToken: this.getAccessToken,
89
+ accessTokenError: false
90
+ }
88
91
  }
89
92
 
90
93
  private getContextValue() {