set timeSkew when passing tokens to init(), also allow timeSkew to be passed as a parameter / KEYCLOAK-2322

This commit is contained in:
Alexander Schwartz committed 2016-01-14 22:37:29 +01:00
1 parent e913c8da16
commit 9b8c80e83f
2 files changed
+3

No files matched your search

@@ -129,6 +129,7 @@
} else if (initOptions) {
if (initOptions.token || initOptions.refreshToken) {
setToken(initOptions.token, initOptions.refreshToken, initOptions.idToken, false);
kc.timeSkew = initOptions.timeSkew || 0;
if (loginIframe.enable) {
setupCheckLoginIframe().success(function() {