Guides
Users
Log in a user account

Login a User

After successful registration, the user can login with its credentials.


Login feature application has been illustrated in the example below

auth.login()

This method allows you to login a user into his account , provided that the user has passed the authentication stage. Simply provide the user email and password in the argument and execute the method. The SDK will automatically obtain the auth token from the server.

// Get email and password from inputs
// and submit the request to the server
auth.login(email,password).then((res) => {
   //Handle Response
});