@samhammer/authentication-vue 2.0.5 → 2.0.7
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/lib/AuthOptions.d.ts +2 -0
- package/lib/AuthPlugin.js +3 -1
- package/package.json +1 -1
package/lib/AuthOptions.d.ts
CHANGED
package/lib/AuthPlugin.js
CHANGED
|
@@ -101,6 +101,7 @@ class KeycloakPlugin {
|
|
|
101
101
|
});
|
|
102
102
|
this.pluginState = {
|
|
103
103
|
keycloak: keycloak,
|
|
104
|
+
authOptios: authOptions,
|
|
104
105
|
accessTokenKey: `${authOptions.appClientId}-accessToken`,
|
|
105
106
|
refreshTokenKey: `${authOptions.appClientId}-refreshToken`,
|
|
106
107
|
idTokenKey: `${authOptions.appClientId}-idToken`
|
|
@@ -125,7 +126,8 @@ class KeycloakPlugin {
|
|
|
125
126
|
enableLogging: false,
|
|
126
127
|
refreshToken: LocalStorageUtils.getItem(this.pluginState.refreshTokenKey),
|
|
127
128
|
token: LocalStorageUtils.getItem(this.pluginState.accessTokenKey),
|
|
128
|
-
idToken: LocalStorageUtils.getItem(this.pluginState.idTokenKey)
|
|
129
|
+
idToken: LocalStorageUtils.getItem(this.pluginState.idTokenKey),
|
|
130
|
+
...this.pluginState.authOptios.keycloakInitOptions
|
|
129
131
|
});
|
|
130
132
|
if (authenticated) {
|
|
131
133
|
console.debug("authenticated keycloak");
|