Request Body:
company_username (string) - Username perusahaan, contoh: "INSOM"
username (string) - Username karyawan, contoh: "fahmi1"
password (string) - Password karyawan
device_type (string) - Tipe device, contoh: "Android"
ip_address (string) - IP address device
timezone (string) - Timezone, contoh: "Asia/Jakarta"
product (string) - Nama produk, contoh: "Japregeo"
fcm (string) - Firebase Cloud Messaging token
Response:
200 OK
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"access_exp": 1640995200,
"refresh_token": "refresh_token_abc123",
"refresh_exp": 1643587200,
"employee": {
"id": 1,
"username": "fahmi1",
"name": "Fahmi",
"email": "
[email protected]"
},
"login_history_id": 1
}