Our Postman collection provides a basic set of API requests and automated tests for JWT Authentication Pro, designed for the developer to extend the collection to their needs.
Collection Contents
Route
- Generate JWT tokens with credentials
- Pre-request scripts for auth
- Response validation tests
Route
- Validate JWT tokens
- Automatic header injection
- Token status verification
Route
- Refresh expired tokens
- Auto token management
- Token rotation tests
Route
- Get user profile data
- Auth header handling
- Response validation
Installation
1
Install Postman
First, install Postman by downloading it from the official website
2
Download Collection
Download or view the collection:
3
Import Collection
Import the downloaded collection file into Postman
Environment Setup
1
Open Environment Settings
- Open Postman and select the imported collection
- Click on “Environments” in the left sidebar
- Create a new environment named “JWT Auth Pro”
2
Configure Variables
Add the following variables in the environment editor:
Your WordPress site URL (e.g., https://your-site.com)
Your WordPress username
Your WordPress password
3
Save Changes
Click the “Save” button to apply your changes
Both methods achieve the same result. Choose the one that best fits your workflow.
Running Tests
You can use Newman, Postman’s command-line collection runner, to automate your API tests in CI/CD pipelines