Authentication
All the authentication and initial details fetch APIs are included in this section.
Contents
- Login
- User details
- Company details
- Project details
- Logout
- Edit profile
Login
device_id
It is passing for device registration. It is used to generate the access token for authentication
device_name
It is passing for device registration. It is used to generate the access token for authentication..
force_logout
It is a boolean value. If true, the current user token will be refreshed and a new user token will be given in the response. You can restrict multiple device login with this. If the user wants to login into multiple devices, give this value as false.
registration_id
Current timestamp is using as registration_id here.
is_granted
It is a boolean variable. If true, the user is allowed to log in. If false, there is some issue in login due to an invalid user token sent or something.
last_active_device
contains details of the user’s device that were previously active. Comparing this with the current device, you can verify the user is logging in on multiple devices. If you want to restrict this, call login API again with force_logout as true.