|
@@ -32,7 +32,8 @@ if ($userInputData !== null) {
|
|
'aud' => 'http://kittipoyi.com',
|
|
'aud' => 'http://kittipoyi.com',
|
|
'iat' => time(),
|
|
'iat' => time(),
|
|
'nbf' => time(),
|
|
'nbf' => time(),
|
|
- 'kpid' => $id['oid']
|
|
|
|
|
|
+ 'kpid' => $id['oid'],
|
|
|
|
+ 'exp' => time() + (60 * 60 * 24),
|
|
];
|
|
];
|
|
$jwt = JWT::encode($payload, $key, 'HS256');
|
|
$jwt = JWT::encode($payload, $key, 'HS256');
|
|
$message['status'] = true;
|
|
$message['status'] = true;
|