Auto Login
AutoLogin is a functionality that enables you to use your Login system and get users validated at Conscent.ai System.
A temporary token is generated using an API and this token needs to be stored at Client's end.
Request Body
Name
Type
Description
csc('auto-login', {
clientId: clientId,
token: tokenEntered,
phone: data?.phoneNumber,
email: data?.email,
successCallbackFunction: async (userDetailsObject: any) => {
setShowLoginDetails(true);
console.log('Success callback received from conscent auto Login', userDetailsObject);
alert('login successfull');
},
errorCallbackFunction: (errorObject: any) => {
console.error(errorObject);
alert('login unsuccessfull');
},
unauthorizedCallback: () => {
console.log('unauthorized callback called');
},
});csc('auto-login', {
clientId: clientId,
token: tokenEntered,
phone: data?.phoneNumber,
email: data?.email,
successCallbackFunction: async (userDetailsObject: any) => {
setShowLoginDetails(true);
console.log('Success callback received from conscent auto Login', userDetailsObject);
alert('login successfull');
},
errorCallbackFunction: (errorObject: any) => {
console.error(errorObject);
alert('login unsuccessfull');
},
unauthorizedCallback: () => {
console.log('unauthorized callback called');
},
});Last updated