Skip to content
Snippets Groups Projects
Commit 83a803c4 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Fix some typos

parent 639a8492
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ async function kcMakeAsync(promise) {
// the native keycloak promise implementation is broken, wrap it instead
// https://stackoverflow.com/questions/58436689/react-keycloak-typeerror-kc-updatetoken-success-is-not-a-function
return new Promise(function(resolve, reject) {
promise.success((...args) => { resolve(...args); }).error((...args) => { reject(...args)});
promise.success((...args) => { resolve(...args); }).error((...args) => { reject(...args); });
});
}
......@@ -62,7 +62,7 @@ export class KeycloakWrapper extends EventTarget {
let refreshed = false;
try {
refreshed = await kcMakeAsync(that._keycloak.updateToken(5));
refreshed = await kcMakeAsync(this._keycloak.updateToken(5));
} catch (error) {
console.log('Failed to refresh the token', error);
return;
......@@ -79,7 +79,7 @@ export class KeycloakWrapper extends EventTarget {
if (this._keycloak !== null)
return;
const module = await importKeycloak(this._baseURL)
const module = await importKeycloak(this._baseURL);
this._keycloak = module.Keycloak({
url: this._baseURL,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment