Update Perbaikan Expire token
This commit is contained in:
parent
cc3f7becac
commit
f7665c6628
@ -98,11 +98,12 @@ class Auth extends Controller {
|
||||
}
|
||||
|
||||
// Buat JWT payload
|
||||
$exp = time() + 86400;
|
||||
$payload = [
|
||||
'userid' => $row['id'],
|
||||
'roleid' => $row['role_id'],
|
||||
'username' => $row['username'],
|
||||
'exp' => 86400 // 1 hari
|
||||
'exp' => $exp
|
||||
];
|
||||
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user