Create Login Button
To create login with cream button, embed this script code inside <head> section.
<script src="https://app.creamsolution.io/public/js/sso.js"></script>Then, invoke the creamSso function in the onClick listener of your button.
<script>
$('#login-with-cream-button').click(function () {
navigator.CreamAuth.creamSso({
clientId: 'Replace with your Client ID',
title: '以Cream帳戶登入',
state: 'Any String',
});
});
</script>When triggering this button, a new window will popup for the user to sign in with Cream account.
Last updated