Created the JWT authentication for the editor so that it's more secure and can potentially be used to create a desktop app in the future. Used Tuupola's JWT auth middleware implementation to help with the auth part. Used Firebase's JWT method to create the token
Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
@@ -10,6 +10,10 @@ require_once "./config.php";
|
||||
*/
|
||||
class timelineData
|
||||
{
|
||||
/**
|
||||
* Get all education data
|
||||
* @return array - Array of all education data or error message
|
||||
*/
|
||||
function getEduData(): array
|
||||
{
|
||||
$conn = dbConn();
|
||||
@@ -26,6 +30,10 @@ class timelineData
|
||||
return array("errorMessage" => "Error, edu data not found");
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all work data
|
||||
* @return array - Array of all work data or error message
|
||||
*/
|
||||
function getWorkData(): array
|
||||
{
|
||||
$conn = dbConn();
|
||||
|
||||
Reference in New Issue
Block a user