Author: ShairyPortfolio
-

User Authentication using REST API and JSON Web Tokens (JWT) – Step 6
Create user with JSON Web Token Almost all the process is similar as we done in previous step to create the user but now we do the same thing with JWT. For this we have to perform the following steps: Download composer using command in api folder using composer require firebase/php-jwt Create new file core.…
-

User Authentication using REST API and JSON Web Tokens (JWT) – Step 5
Simple Login via Unique ID Create a new file login.php file inside user folder and use the following code
-

User Authentication using REST API and JSON Web Tokens (JWT) – Step 5
Simple Login via Unique ID Create a new Single Record fetch function inside the user.php file inside object folder and use the following code
-

User Authentication using REST API and JSON Web Tokens (JWT) – Step 4
Create user folder and Create a new file called create_user.php and Following steps to be performed for this 1. We need to set headers on this new file so that it will only accept JSON data from a specific URL. 2. Connect to database and register table 3. Assign submitted data to object properties 4. Use the create…