diff --git a/src/js/angularOauth.js b/src/js/angularOauth.js index d244c63..eb73a9f 100644 --- a/src/js/angularOauth.js +++ b/src/js/angularOauth.js @@ -98,6 +98,13 @@ angular.module('angularOauth', []). localStorage[config.localStorageName] = accessToken; }, + /** + * Forgets the access token. + */ + clear: function() { + localStorage.removeItem(config.localStorageName); + }, + /** * Verifies that the access token is was issued for the use of the current client. *