Skip to content

Instantly share code, notes, and snippets.

@ndv
Created December 5, 2011 08:29
Show Gist options
  • Save ndv/1432854 to your computer and use it in GitHub Desktop.
Save ndv/1432854 to your computer and use it in GitHub Desktop.
setSignInProvider
window.Ecwid.OnAPILoaded.add(function() {
window.Ecwid.setSignInProvider({
addSignInLinkToPB: function() { return true; },
signIn: function () { alert('sign in');
window.Ecwid.setSsoProfile('<?php echo "$message $hmac $timestamp"; ?>');
},
canSignOut: function() { return true; },
signOut: function () { alert('sign out') }
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment