Login
This script can be called anywhere as you already have the SDK script in your header section.
Parameters
Description
const csc = window._csc as any;
csc('conscent-login', {
debug: true,
clientId: clientId,
defaultEmail: defaultEmail || '',
defaultName: defaultName || '',
defaultPhone: defaultPhone || '',
wrappingElementId: 'embed',
successCallback: async (userDetailsObject: any) => {
console.log('Success callback received from conscent login', userDetailsObject);
setUserDetails(userDetailsObject);
props.setShowLoginModal(false)
},
onCrossBtnClickSuccess: async () => {
console.log('cross btn click successfully');
props.setShowLoginModal(false)
},
unauthorizedCallback: () => {
console.log('unauthorized callback called');
},
});

Last updated