Authentication
Authorization module contains methods for user sign in, user sign up, forgot password, social login and logout.
Method Method detail
userSignup() Create a new user account. Using email address and password. You will receive an account verified link to activate the account.
signInRawData() Login through email and password with registered email and password. This method return object with user basic info like name, email and access token which is further used to access other method.
socialSigninData() It is validate the social user.
forgotPassword() User forgot their password. User can forgot password using his registered email address.
  • Sign up
    Class : GluedInAuthModule
    Method : userSignup()
    Create a new user account. Using email address and password. You will receive an account verified link to activate the account.
    Request:
    • Request Object : SignUpRequest
    • Parameters
    • FullName : User full name
    • Email : User email address
    • Password : User password
    Response:
    • Response Object : SignUpInfo
    • StatusCode : It returns api status code (like 200,201,500,401)
    • Success : It returns boolean value, (true/false)
    • Message : It is simple string message
    	    
    // initialize SDK Method
    var authLoginInput = new GluedIn.GluedInAuthModule;
    let signupRawData = {
    "fullName": “ABC”,
    "email": “abc@gluedin.com”,
    "password": “password”
    };
    var userSignUpResponse = await authLoginInput.SignupRawData(signupRawData);
        	});
        
        
  • Sign In
    Class : GluedInAuthModule
    Method : signInRawData()
    Login through email and password with registered email and password. This method return object with user basic info like name, email and access token which is further used to access other method.
    Request:
    • Request Object : SignInReq
    • Parameters
    • Email : User registered email address
    • Password : User password
    Response:
    • Response Object : SignInResponse
    • StatusCode : It return api status code (like 200,201,500,401)
    • Success : It return boolean value, (true/false)
    • Message: It is simple string message
    • data : user related data
    	    
    //initialize SDK Method
    var authLoginInput = new GluedIn.GluedInAuthModule;
    let signInRawData = {
    "email": “abc@gluedin.com”,
    "password": “password”
    };
    var userSignIpResponse = await authLoginInput.AuthRawData(signInRawData);
    
        
        
  • Social Login
    Class : GluedInAuthModule
    Method : socialSigninData()
    It is validate the social user.
    Request:
    • Request Object : SocialLogInReq
    • Parameters
    • Email: Email address,
    • FullName : User full name
    • UserId: social account user id,
    • userName: social account username,
    • ProfileImageUrl : social profile image,
    • Type : google/facebook,
    • SocialType : login/signup
    Response:
    • Response Object : SignInResponse
    • StatusCode : It returns api status code (like 200,201,500,401)
    • Success: It returns boolean value, (true/false)
    • Message: It is simple string message
    • data : user related data
  • Forgot Password
    Class : GluedInAuthModule
    Method : forgotPassword()
    User forgot their password. User can forgot password using his registered email address.
    Request:
    • Request Object : requestBody
    • Parameters
    • Email : User registered email address
    Response:
    • Response Object : ForgotPasswordResponse
    • StatusCode : It return api status code (like 200,201,500,401)
    • Success : It return boolean value, (true/false)
    • Message : It is simple string message
    Step to Integrate
    	
    // initialize SDK Method
    var authLoginInput = new GluedIn.GluedInAuthModule;
    let email =  “abc@gluedin.com
    };
    var userSignIpResponse = await authLoginInput.forgotPassword(email);