diff --git a/book.json b/book.json index 7ffcdf7042..8e7085a785 100755 --- a/book.json +++ b/book.json @@ -19,9 +19,9 @@ "title": "Keycloak Documentation", "project": { "name": "Keycloak", - "version": "3.0.0.CR1-SNAPSHOT", - "versionMvn": "3.0.0.CR1-SNAPSHOT", - "versionNpm": "3.0.0-cr.1" + "version": "SNAPSHOT", + "versionMvn": "SNAPSHOT", + "versionNpm": "SNAPSHOT" }, "community": true, "product": false, diff --git a/securing_apps/topics/oidc/javascript-adapter.adoc b/securing_apps/topics/oidc/javascript-adapter.adoc index 92383c9d23..24c1e1ec9c 100644 --- a/securing_apps/topics/oidc/javascript-adapter.adoc +++ b/securing_apps/topics/oidc/javascript-adapter.adoc @@ -314,7 +314,19 @@ Returns true if the token has the given role for the resource (resource is optio Loads the users profile. -Returns promise to set functions to be invoked on success or error. +Returns promise to set functions to be invoked if the profile was loaded successfully, or if the profile could not be +loaded. + +For example: + +[source,javascript] +---- +keycloak.loadUserProfile().success(function(profile) { + alert(JSON.stringify(test, null, " ")); + }).error(function() { + alert('Failed to load user profile'); + }); +---- ====== isTokenExpired(minValidity)