chore: initial commit
This commit is contained in:
37
api/config/jwt.php
Normal file
37
api/config/jwt.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
|--------------------
|
||||
| JWT Secure Key
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
$config['jwt_key'] = 'eyJ0eXAiOiJKV1QiLCJhbGciTWeLUzI1NiJ9IiRkYXRhIz';
|
||||
|
||||
|
||||
/*
|
||||
|-----------------------
|
||||
| JWT Algorithm Type
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
$config['jwt_algorithm'] = 'HS256';
|
||||
|
||||
|
||||
/*
|
||||
|-----------------------
|
||||
| Token Request Header Name
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
$config['token_header'] = 'authtoken';
|
||||
|
||||
|
||||
/*
|
||||
|-----------------------
|
||||
| Token Expire Time
|
||||
|
||||
| https://www.tools4noobs.com/online_tools/hh_mm_ss_to_seconds/
|
||||
|--------------------------------------------------------------------------
|
||||
| ( 1 Day ) : 60 * 60 * 24 = 86400
|
||||
| ( 1 Hour ) : 60 * 60 = 3600
|
||||
| ( 1 Minute ) : 60 = 60
|
||||
*/
|
||||
$config['token_expire_time'] = 315569260;
|
||||
Reference in New Issue
Block a user