podio-js
Version:
Podio Platform JavaScript SDK for NodeJS and the browser
15 lines • 411 B
JavaScript
(function() {
window.SessionStore = {
get: function(authType, callback) {
var podioOAuth = localStorage.getItem('podioOAuth');
if (podioOAuth) {
podioOAuth = JSON.parse(podioOAuth);
}
callback(podioOAuth || {});
},
set: function(podioOAuth, authType) {
localStorage.setItem('podioOAuth', JSON.stringify(podioOAuth));
location.hash = "";
}
};
})();